summaryrefslogtreecommitdiff
path: root/src/mongo/dbtests
diff options
context:
space:
mode:
authorBenety Goh <benety@mongodb.com>2019-09-01 13:49:27 +0000
committerevergreen <evergreen@mongodb.com>2019-09-01 13:49:27 +0000
commit8685992ea1488da7afbad047530d3f18988c2224 (patch)
treec92b078d5308c738c1d73d98a90ce739ba8b2fa1 /src/mongo/dbtests
parentafbd64a6d1351107c217912fdda1324cef9faf1e (diff)
downloadmongo-8685992ea1488da7afbad047530d3f18988c2224.tar.gz
SERVER-43023 IndexBuildsCoordinator emits startIndexBuild oplog entry at the beginning of an index build
This replaces the 'n' (no-op) oplog entry with the message "Creating indexes. Coll: (nss)".
Diffstat (limited to 'src/mongo/dbtests')
-rw-r--r--src/mongo/dbtests/storage_timestamp_tests.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mongo/dbtests/storage_timestamp_tests.cpp b/src/mongo/dbtests/storage_timestamp_tests.cpp
index 50f269970c7..c7ea2fee483 100644
--- a/src/mongo/dbtests/storage_timestamp_tests.cpp
+++ b/src/mongo/dbtests/storage_timestamp_tests.cpp
@@ -2139,7 +2139,10 @@ public:
}
const Timestamp indexCreateInitTs = queryOplog(BSON("op"
- << "n"))["ts"]
+ << "c"
+ << "o.startIndexBuild" << nss.coll()
+ << "o.indexes.0.name"
+ << "a_1"))["ts"]
.timestamp();
const Timestamp indexAComplete = queryOplog(BSON("op"