diff options
author | Andy Schwerin <schwerin@10gen.com> | 2012-05-16 17:22:38 -0400 |
---|---|---|
committer | Andy Schwerin <schwerin@10gen.com> | 2012-05-16 17:56:07 -0400 |
commit | e422ec341c86a65348812344f607b3d46d086e75 (patch) | |
tree | 03ba33a6477795d6c2856b60385a331a93ef92d0 /jstests/fsync.js | |
parent | bb5002579d8b4d3462d2e19bc0461711b1be8680 (diff) | |
download | mongo-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.js | 1 |
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." ) |