summaryrefslogtreecommitdiff
path: root/jstests/fsync.js
diff options
context:
space:
mode:
authorAndy Schwerin <schwerin@10gen.com>2012-05-16 17:22:38 -0400
committerAndy Schwerin <schwerin@10gen.com>2012-05-16 17:56:07 -0400
commite422ec341c86a65348812344f607b3d46d086e75 (patch)
tree03ba33a6477795d6c2856b60385a331a93ef92d0 /jstests/fsync.js
parentbb5002579d8b4d3462d2e19bc0461711b1be8680 (diff)
downloadmongo-e422ec341c86a65348812344f607b3d46d086e75.tar.gz
SERVER-5855 Refuse to run an fsyncLock() command from a locked context.
fsyncLock() inside a locked context deadlocks the server immediately.
Diffstat (limited to 'jstests/fsync.js')
-rw-r--r--jstests/fsync.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/jstests/fsync.js b/jstests/fsync.js
index 134d558c084..0cfece75c10 100644
--- a/jstests/fsync.js
+++ b/jstests/fsync.js
@@ -19,3 +19,4 @@ db.getLastError();
assert( db.currentOp().fsyncLock == null, "A" );
+assert( !db.eval('db.fsyncLock()').ok, "eval('db.fsyncLock()') should fail." )