summaryrefslogtreecommitdiff
path: root/src/mongo/db/repl/replication_coordinator.h
diff options
context:
space:
mode:
authorBenety Goh <benety@mongodb.com>2017-05-22 14:24:41 -0400
committerBenety Goh <benety@mongodb.com>2017-05-23 11:37:46 -0400
commitc1b1bd0944115c30b18bfe189356897e8896012f (patch)
tree6ef399e414cf6df6a355c3d6094c62089ebc9837 /src/mongo/db/repl/replication_coordinator.h
parentb3d704a117d1abcc123e205808fbebe5a275ca55 (diff)
downloadmongo-c1b1bd0944115c30b18bfe189356897e8896012f.tar.gz
SERVER-29274 move oplogDisabled from oplog.cpp to ReplicationCoordinator
Diffstat (limited to 'src/mongo/db/repl/replication_coordinator.h')
-rw-r--r--src/mongo/db/repl/replication_coordinator.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mongo/db/repl/replication_coordinator.h b/src/mongo/db/repl/replication_coordinator.h
index a9ccd9f642a..d682ee756be 100644
--- a/src/mongo/db/repl/replication_coordinator.h
+++ b/src/mongo/db/repl/replication_coordinator.h
@@ -875,6 +875,12 @@ public:
*/
virtual Status abortCatchupIfNeeded() = 0;
+ /**
+ * Returns true if logOp() should not append an entry to the oplog for the namespace for this
+ * operation.
+ */
+ bool isOplogDisabledFor(OperationContext* opCtx, const NamespaceString& nss);
+
protected:
ReplicationCoordinator();
};