summaryrefslogtreecommitdiff
path: root/jstests/noPassthrough
diff options
context:
space:
mode:
authorGregory Noma <gregory.noma@gmail.com>2020-06-01 17:05:32 -0400
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-06-02 15:34:41 +0000
commit9d5cbaf72b8a797d3c729e5e245b9842b8b2f90c (patch)
tree2b4122777b2421255ed16c140e70db1ea7ae9223 /jstests/noPassthrough
parent9fcca8acb9a8995e007b5c4c06e5349a57e274e6 (diff)
downloadmongo-9d5cbaf72b8a797d3c729e5e245b9842b8b2f90c.tar.gz
SERVER-48413 Add evergreen builder for resumable index builds
Diffstat (limited to 'jstests/noPassthrough')
-rw-r--r--jstests/noPassthrough/libs/index_build.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/jstests/noPassthrough/libs/index_build.js b/jstests/noPassthrough/libs/index_build.js
index 373928e1f41..1befdfd1361 100644
--- a/jstests/noPassthrough/libs/index_build.js
+++ b/jstests/noPassthrough/libs/index_build.js
@@ -207,4 +207,13 @@ var IndexBuildTest = class {
.commandWorked(conn.adminCommand({getParameter: 1, enableIndexBuildCommitQuorum: 1}))
.enableIndexBuildCommitQuorum;
}
+
+ /**
+ * Returns whether resumable index builds are supported.
+ */
+ static resumableIndexBuildsEnabled(conn) {
+ return assert
+ .commandWorked(conn.adminCommand({getParameter: 1, enableResumableIndexBuilds: 1}))
+ .enableResumableIndexBuilds;
+ }
};