diff options
Diffstat (limited to 'jstests/replsets/drop_collections_two_phase_apply_ops_create.js')
-rw-r--r-- | jstests/replsets/drop_collections_two_phase_apply_ops_create.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/jstests/replsets/drop_collections_two_phase_apply_ops_create.js b/jstests/replsets/drop_collections_two_phase_apply_ops_create.js index b70ca670cd5..792be894d8d 100644 --- a/jstests/replsets/drop_collections_two_phase_apply_ops_create.js +++ b/jstests/replsets/drop_collections_two_phase_apply_ops_create.js @@ -19,6 +19,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); |