diff options
author | Siyuan Zhou <siyuan.zhou@mongodb.com> | 2018-10-04 16:42:16 -0400 |
---|---|---|
committer | Siyuan Zhou <siyuan.zhou@mongodb.com> | 2018-10-11 21:04:40 -0400 |
commit | 5e27924959612f7ea922494bd098dac8e7af4e99 (patch) | |
tree | 116104312ad3ff543436de9b74cbd5a5fff87c49 /src/mongo/db/repl/oplog.h | |
parent | 3810ea3cec6bcba7c0e62ce0170ea34b31046dcf (diff) | |
download | mongo-5e27924959612f7ea922494bd098dac8e7af4e99.tar.gz |
SERVER-37480 Use OplogEntry in command oplog application
Diffstat (limited to 'src/mongo/db/repl/oplog.h')
-rw-r--r-- | src/mongo/db/repl/oplog.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/mongo/db/repl/oplog.h b/src/mongo/db/repl/oplog.h index f64a0d0dcb6..9ed57bd410e 100644 --- a/src/mongo/db/repl/oplog.h +++ b/src/mongo/db/repl/oplog.h @@ -37,6 +37,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_entry.h" #include "mongo/db/repl/optime.h" #include "mongo/db/repl/replication_coordinator.h" #include "mongo/stdx/functional.h" @@ -222,10 +223,13 @@ Status applyOperation_inlock(OperationContext* opCtx, /** * Take a command op and apply it locally - * Used for applying from an oplog + * Used for applying from an oplog and for applyOps command. * Returns failure status if the op that could not be applied. */ -Status applyCommand_inlock(OperationContext* opCtx, const BSONObj& op, OplogApplication::Mode mode); +Status applyCommand_inlock(OperationContext* opCtx, + const BSONObj& op, + const OplogEntry& entry, + OplogApplication::Mode mode); /** * Initializes the global Timestamp with the value from the timestamp of the last oplog entry. |