summaryrefslogtreecommitdiff
path: root/jstests
diff options
context:
space:
mode:
authorEric Milkie <milkie@10gen.com>2020-07-01 12:26:30 -0400
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-07-08 15:01:42 +0000
commit13d756e1645f3d41439f336d2312777dd0cb1999 (patch)
tree8d606be068e140261e8d7f915fc78734031d0a07 /jstests
parent9d4f0f264a6e0035abd3d541583a615bc8085a86 (diff)
downloadmongo-13d756e1645f3d41439f336d2312777dd0cb1999.tar.gz
SERVER-48628 sort oplog entries first in applier batches, for create ops in transactions
Diffstat (limited to 'jstests')
-rw-r--r--jstests/core/txns/create_collection.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/jstests/core/txns/create_collection.js b/jstests/core/txns/create_collection.js
index 6870e1f5991..5e83df8aa92 100644
--- a/jstests/core/txns/create_collection.js
+++ b/jstests/core/txns/create_collection.js
@@ -16,7 +16,9 @@ load("jstests/libs/auto_retry_transaction_in_sharding.js");
function runCollectionCreateTest(command, explicitCreate) {
const session = db.getMongo().startSession();
const collName = "create_new_collection";
- const secondCollName = collName + "_second";
+ // Note: using strange collection name here to test sorting of operations by namespace,
+ // SERVER-48628
+ const secondCollName = "\n" + collName + "_second";
let sessionDB = session.getDatabase("test");
let sessionColl = sessionDB[collName];