diff options
author | Kyle Suarez <kyle.suarez@mongodb.com> | 2018-02-16 13:12:56 -0500 |
---|---|---|
committer | Kyle Suarez <kyle.suarez@mongodb.com> | 2018-02-16 13:12:56 -0500 |
commit | eda72588a747cebc644628c06bcf12cc83d10609 (patch) | |
tree | 9b91fa061dedad17d7854f93b684a5fc4e8df3ed /jstests | |
parent | ade1ebcb01606e11f2983031792db1cec95755cf (diff) | |
download | mongo-eda72588a747cebc644628c06bcf12cc83d10609.tar.gz |
SERVER-33365 run a valid doTxn command when checking it fails on MMAPv1
Diffstat (limited to 'jstests')
-rw-r--r-- | jstests/core/do_txn_basic.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/jstests/core/do_txn_basic.js b/jstests/core/do_txn_basic.js index d1c9cb30dbb..8d12ec377d0 100644 --- a/jstests/core/do_txn_basic.js +++ b/jstests/core/do_txn_basic.js @@ -7,9 +7,11 @@ // For isMMAPv1. load("jstests/concurrency/fsm_workload_helpers/server_types.js"); + const t = db.do_txn1; + if (isMMAPv1(db)) { assert.commandFailedWithCode( - db.adminCommand({doTxn: []}), + db.adminCommand({doTxn: [{op: "i", ns: t.getFullName(), o: {_id: 1}}]}), ErrorCodes.CommandNotSupported, "doTxn should fail if document level locking isn't supported."); @@ -17,7 +19,6 @@ return; } - var t = db.do_txn1; t.drop(); // |