diff options
Diffstat (limited to 'jstests/replsets/drop_collections_two_phase.js')
-rw-r--r-- | jstests/replsets/drop_collections_two_phase.js | 44 |
1 files changed, 22 insertions, 22 deletions
diff --git a/jstests/replsets/drop_collections_two_phase.js b/jstests/replsets/drop_collections_two_phase.js index 8b6b3bab79e..ac8b727834a 100644 --- a/jstests/replsets/drop_collections_two_phase.js +++ b/jstests/replsets/drop_collections_two_phase.js @@ -4,34 +4,34 @@ */ (function() { - "use strict"; +"use strict"; - load("jstests/replsets/libs/two_phase_drops.js"); // For TwoPhaseDropCollectionTest. +load("jstests/replsets/libs/two_phase_drops.js"); // For TwoPhaseDropCollectionTest. - // Set up a two phase drop test. - let testName = "drop_collection_two_phase"; - let dbName = testName; - let collName = "collToDrop"; - let twoPhaseDropTest = new TwoPhaseDropCollectionTest(testName, dbName); +// Set up a two phase drop test. +let testName = "drop_collection_two_phase"; +let dbName = testName; +let collName = "collToDrop"; +let twoPhaseDropTest = new TwoPhaseDropCollectionTest(testName, dbName); - // Initialize replica set. - let replTest = twoPhaseDropTest.initReplSet(); +// Initialize replica set. +let replTest = twoPhaseDropTest.initReplSet(); - // Check for 'system.drop' two phase drop support. - if (!twoPhaseDropTest.supportsDropPendingNamespaces()) { - jsTestLog('Drop pending namespaces not supported by storage engine. Skipping test.'); - twoPhaseDropTest.stop(); - return; - } +// Check for 'system.drop' two phase drop support. +if (!twoPhaseDropTest.supportsDropPendingNamespaces()) { + jsTestLog('Drop pending namespaces not supported by storage engine. Skipping test.'); + twoPhaseDropTest.stop(); + return; +} - // Create the collection that will be dropped. - twoPhaseDropTest.createCollection(collName); +// Create the collection that will be dropped. +twoPhaseDropTest.createCollection(collName); - // PREPARE collection drop. - twoPhaseDropTest.prepareDropCollection(collName); +// PREPARE collection drop. +twoPhaseDropTest.prepareDropCollection(collName); - // COMMIT collection drop. - twoPhaseDropTest.commitDropCollection(collName); +// COMMIT collection drop. +twoPhaseDropTest.commitDropCollection(collName); - twoPhaseDropTest.stop(); +twoPhaseDropTest.stop(); }()); |