summaryrefslogtreecommitdiff
path: root/jstests/replsets/drop_collections_two_phase_apply_ops_drop.js
diff options
context:
space:
mode:
authorBenety Goh <benety@mongodb.com>2018-12-23 12:16:32 -0500
committerBenety Goh <benety@mongodb.com>2018-12-23 12:16:49 -0500
commitf7089e3b12fc79adb583a031da87fed14cc6fc35 (patch)
tree4d6dfbd77d1283b46bc576f217e06cd07a821ba2 /jstests/replsets/drop_collections_two_phase_apply_ops_drop.js
parentbf2b72c0f436f26b9bcc481243c73a39486c34de (diff)
downloadmongo-f7089e3b12fc79adb583a031da87fed14cc6fc35.tar.gz
SERVER-38604 two phase drop tests that use system.drop namespaces check serverStatus() for support before proceeding
Diffstat (limited to 'jstests/replsets/drop_collections_two_phase_apply_ops_drop.js')
-rw-r--r--jstests/replsets/drop_collections_two_phase_apply_ops_drop.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/jstests/replsets/drop_collections_two_phase_apply_ops_drop.js b/jstests/replsets/drop_collections_two_phase_apply_ops_drop.js
index fe05c05f18e..8cfbca31166 100644
--- a/jstests/replsets/drop_collections_two_phase_apply_ops_drop.js
+++ b/jstests/replsets/drop_collections_two_phase_apply_ops_drop.js
@@ -17,6 +17,13 @@
// 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;
+ }
+
// Create the collection that will be dropped.
twoPhaseDropTest.createCollection(collName);