summaryrefslogtreecommitdiff
path: root/src/mongo/db/op_observer_registry.h
diff options
context:
space:
mode:
authorSuganthi Mani <suganthi.mani@mongodb.com>2020-02-28 15:54:31 -0500
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-03-02 08:02:54 +0000
commit4628f264e60fd69cd09388e6fca0d3dd1b82f14c (patch)
treebca64008b3010bfb3500c2e6b4dabfb28d5d8862 /src/mongo/db/op_observer_registry.h
parenta5582fa42435116ab05efcabddf17219fbd573d6 (diff)
downloadmongo-4628f264e60fd69cd09388e6fca0d3dd1b82f14c.tar.gz
SERVER-39071 Implements commit quorum for two phase index builds.
Diffstat (limited to 'src/mongo/db/op_observer_registry.h')
-rw-r--r--src/mongo/db/op_observer_registry.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mongo/db/op_observer_registry.h b/src/mongo/db/op_observer_registry.h
index 2470baa74cc..ec7fe1908c1 100644
--- a/src/mongo/db/op_observer_registry.h
+++ b/src/mongo/db/op_observer_registry.h
@@ -73,10 +73,12 @@ public:
CollectionUUID collUUID,
const UUID& indexBuildUUID,
const std::vector<BSONObj>& indexes,
+ const CommitQuorumOptions& commitQuorum,
bool fromMigrate) override {
ReservedTimes times{opCtx};
for (auto& o : _observers) {
- o->onStartIndexBuild(opCtx, nss, collUUID, indexBuildUUID, indexes, fromMigrate);
+ o->onStartIndexBuild(
+ opCtx, nss, collUUID, indexBuildUUID, indexes, commitQuorum, fromMigrate);
}
}