diff options
Diffstat (limited to 'jstests/libs/clustered_collections/clustered_collection_util.js')
-rw-r--r-- | jstests/libs/clustered_collections/clustered_collection_util.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/jstests/libs/clustered_collections/clustered_collection_util.js b/jstests/libs/clustered_collections/clustered_collection_util.js index d6f710b2607..8422e895f40 100644 --- a/jstests/libs/clustered_collections/clustered_collection_util.js +++ b/jstests/libs/clustered_collections/clustered_collection_util.js @@ -6,6 +6,15 @@ load("jstests/libs/analyze_plan.js"); load("jstests/libs/collection_drop_recreate.js"); var ClusteredCollectionUtil = class { + static areAllCollectionsClustered(conn) { + const res = + conn.adminCommand({getParameter: 1, "failpoint.clusterAllCollectionsByDefault": 1}); + if (res.ok) + return res["failpoint.clusterAllCollectionsByDefault"].mode; + else + return false; + } + static areClusteredIndexesEnabled(conn) { const clusteredIndexesEnabled = assert |