diff options
author | Benety Goh <benety@mongodb.com> | 2017-05-23 14:30:34 -0400 |
---|---|---|
committer | Benety Goh <benety@mongodb.com> | 2017-05-23 14:30:34 -0400 |
commit | 56fb4fa3f7813baeebec179905dd98f9dcc30310 (patch) | |
tree | ee39fbc501dcdcc9e88c130e799e86afd38e1c61 /src/mongo/db/repl/replication_coordinator.cpp | |
parent | 3bb7318a5b5c8d4a07696ab1dd292fe5b9077924 (diff) | |
download | mongo-56fb4fa3f7813baeebec179905dd98f9dcc30310.tar.gz |
Revert "SERVER-29274 move oplogDisabled from oplog.cpp to ReplicationCoordinator"
This reverts commit c1b1bd0944115c30b18bfe189356897e8896012f.
Diffstat (limited to 'src/mongo/db/repl/replication_coordinator.cpp')
-rw-r--r-- | src/mongo/db/repl/replication_coordinator.cpp | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/src/mongo/db/repl/replication_coordinator.cpp b/src/mongo/db/repl/replication_coordinator.cpp index d9f5c3fe82a..27ba1b39dda 100644 --- a/src/mongo/db/repl/replication_coordinator.cpp +++ b/src/mongo/db/repl/replication_coordinator.cpp @@ -67,28 +67,5 @@ void ReplicationCoordinator::set(ServiceContext* service, coordinator = std::move(replCoord); } -bool ReplicationCoordinator::isOplogDisabledFor(OperationContext* opCtx, - const NamespaceString& nss) { - if (getReplicationMode() == ReplicationCoordinator::modeNone) { - return true; - } - - if (nss.db() == "local") { - return true; - } - - if (nss.isSystemDotProfile()) { - return true; - } - - if (!opCtx->writesAreReplicated()) { - return true; - } - - fassert(28626, opCtx->recoveryUnit()); - - return false; -} - } // namespace repl } // namespace mongo |