diff options
author | Dianna Hohensee <dianna.hohensee@10gen.com> | 2018-12-20 11:06:04 -0500 |
---|---|---|
committer | Dianna Hohensee <dianna.hohensee@10gen.com> | 2019-01-22 21:44:13 -0500 |
commit | b89d1cb056f82af22a5bef211bd2680f3784e7c2 (patch) | |
tree | 52f4b91a50c351e250f9d61b93e635c6ebabd508 /src/mongo/db/index_builds_coordinator_mongod.cpp | |
parent | aa0d93a714f84bf6a29b42390cc51c79963cf725 (diff) | |
download | mongo-b89d1cb056f82af22a5bef211bd2680f3784e7c2.tar.gz |
SERVER-39066 Add OpObservers and oplog handling for startIndexBuild and commitIndexBuild
Diffstat (limited to 'src/mongo/db/index_builds_coordinator_mongod.cpp')
-rw-r--r-- | src/mongo/db/index_builds_coordinator_mongod.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mongo/db/index_builds_coordinator_mongod.cpp b/src/mongo/db/index_builds_coordinator_mongod.cpp index d74647a5dae..38418ef8f67 100644 --- a/src/mongo/db/index_builds_coordinator_mongod.cpp +++ b/src/mongo/db/index_builds_coordinator_mongod.cpp @@ -127,6 +127,13 @@ IndexBuildsCoordinatorMongod::buildIndex(OperationContext* opCtx, return replIndexBuildState->sharedPromise.getFuture(); } +Status IndexBuildsCoordinatorMongod::commitIndexBuild(OperationContext* opCtx, + const std::vector<BSONObj>& specs, + const UUID& buildUUID) { + // TODO: not yet implemented. + return Status::OK(); +} + void IndexBuildsCoordinatorMongod::signalChangeToPrimaryMode() { stdx::unique_lock<stdx::mutex> lk(_mutex); _replMode = ReplState::Primary; |