diff options
Diffstat (limited to 'src/mongo/db/repl/oplog.h')
| -rw-r--r-- | src/mongo/db/repl/oplog.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/mongo/db/repl/oplog.h b/src/mongo/db/repl/oplog.h index 1752c2e64e6..3df367954b0 100644 --- a/src/mongo/db/repl/oplog.h +++ b/src/mongo/db/repl/oplog.h @@ -38,6 +38,7 @@ #include "mongo/bson/timestamp.h" #include "mongo/db/catalog/collection_options.h" #include "mongo/db/logical_session_id.h" +#include "mongo/db/repl/oplog_constraint_violation_logger.h" #include "mongo/db/repl/oplog_entry.h" #include "mongo/db/repl/oplog_entry_or_grouped_inserts.h" #include "mongo/db/repl/optime.h" @@ -220,6 +221,16 @@ inline std::ostream& operator<<(std::ostream& s, OplogApplication::Mode mode) { } /** + * Logs an oplog constraint violation and writes an entry into the health log. + */ +void logOplogConstraintViolation(OperationContext* opCtx, + const NamespaceString& nss, + OplogConstraintViolationEnum type, + const std::string& operation, + const BSONObj& opObj, + boost::optional<Status> status); + +/** * Used for applying from an oplog entry or grouped inserts. * @param opOrGroupedInserts a single oplog entry or grouped inserts to be applied. * @param alwaysUpsert convert some updates to upserts for idempotency reasons |
