summaryrefslogtreecommitdiff
path: root/src/mongo/db/index_builds_coordinator_mongod.cpp
diff options
context:
space:
mode:
authorBenety Goh <benety@mongodb.com>2019-07-11 10:35:21 -0400
committerBenety Goh <benety@mongodb.com>2019-07-11 10:35:36 -0400
commitadab6702bc9869557c14eb8b0e888c6e854f4593 (patch)
treebd809cf4c9adc085903de2a1eddf7df9bd490fae /src/mongo/db/index_builds_coordinator_mongod.cpp
parentb9272e3fc9c41aff5e8ba8a0d641eed278fcd92f (diff)
downloadmongo-adab6702bc9869557c14eb8b0e888c6e854f4593.tar.gz
SERVER-38667 remove unused replication state notification functions from IndexBuildsCoordinator
Diffstat (limited to 'src/mongo/db/index_builds_coordinator_mongod.cpp')
-rw-r--r--src/mongo/db/index_builds_coordinator_mongod.cpp15
1 files changed, 0 insertions, 15 deletions
diff --git a/src/mongo/db/index_builds_coordinator_mongod.cpp b/src/mongo/db/index_builds_coordinator_mongod.cpp
index b0bea23afa9..4fb8274a640 100644
--- a/src/mongo/db/index_builds_coordinator_mongod.cpp
+++ b/src/mongo/db/index_builds_coordinator_mongod.cpp
@@ -216,21 +216,6 @@ Status IndexBuildsCoordinatorMongod::commitIndexBuild(OperationContext* opCtx,
return Status::OK();
}
-void IndexBuildsCoordinatorMongod::signalChangeToPrimaryMode() {
- stdx::unique_lock<stdx::mutex> lk(_mutex);
- _replMode = ReplState::Primary;
-}
-
-void IndexBuildsCoordinatorMongod::signalChangeToSecondaryMode() {
- stdx::unique_lock<stdx::mutex> lk(_mutex);
- _replMode = ReplState::Secondary;
-}
-
-void IndexBuildsCoordinatorMongod::signalChangeToInitialSyncMode() {
- stdx::unique_lock<stdx::mutex> lk(_mutex);
- _replMode = ReplState::InitialSync;
-}
-
Status IndexBuildsCoordinatorMongod::voteCommitIndexBuild(const UUID& buildUUID,
const HostAndPort& hostAndPort) {
// TODO: not yet implemented.