diff options
author | James Wahlin <james.wahlin@10gen.com> | 2016-10-26 16:10:16 -0400 |
---|---|---|
committer | James Wahlin <james.wahlin@10gen.com> | 2016-11-02 16:31:58 -0400 |
commit | fd16deb6dd3d08756f15c181facc707cb53f4e15 (patch) | |
tree | a0ccd2a6a9e46f5d31a50a635034c4ed9b821313 /jstests/auth | |
parent | 17ffe1f8b38f0aaa5c9cd097a6516daf3161ed6d (diff) | |
download | mongo-fd16deb6dd3d08756f15c181facc707cb53f4e15.tar.gz |
SERVER-6302 Fix multiple fsyncLock() invocation race condition
Diffstat (limited to 'jstests/auth')
-rw-r--r-- | jstests/auth/auth3.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/jstests/auth/auth3.js b/jstests/auth/auth3.js index dd87ea2448a..eac7dc563ff 100644 --- a/jstests/auth/auth3.js +++ b/jstests/auth/auth3.js @@ -20,13 +20,13 @@ assert.eq(x.code, errorCodeUnauthorized, tojson(x)); x = admin.fsyncUnlock(); - assert(x.errmsg != "not locked", tojson(x)); + assert(x.errmsg != "fsyncUnlock called when not locked", tojson(x)); assert.eq(x.code, errorCodeUnauthorized, tojson(x)); conn.getDB("admin").auth("foo", "bar"); assert("inprog" in admin.currentOp()); assert("info" in admin.killOp(123)); - assert.eq(admin.fsyncUnlock().errmsg, "not locked"); + assert.eq(admin.fsyncUnlock().errmsg, "fsyncUnlock called when not locked"); })(); |