diff options
author | Benety Goh <benety@mongodb.com> | 2017-05-26 19:39:56 -0400 |
---|---|---|
committer | Benety Goh <benety@mongodb.com> | 2017-05-31 13:51:45 -0400 |
commit | 87b89ce456856efa68e7619899387c2dd95c2779 (patch) | |
tree | 2259118fa4d9e0f48d2ad51c29abd2aeee4ec98a | |
parent | 3e8b9c599f3027778b48e8c3235d676134eef9bb (diff) | |
download | mongo-87b89ce456856efa68e7619899387c2dd95c2779.tar.gz |
SERVER-29274 applyCommand_inlock() passes optime from oplog entry to mongo::dropCollection()
-rw-r--r-- | src/mongo/db/repl/oplog.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/repl/oplog.cpp b/src/mongo/db/repl/oplog.cpp index 513c6f430b9..1f0b37d2008 100644 --- a/src/mongo/db/repl/oplog.cpp +++ b/src/mongo/db/repl/oplog.cpp @@ -601,7 +601,7 @@ std::map<std::string, ApplyOpMetadata> opsMap = { {"drop", {[](OperationContext* opCtx, const char* ns, BSONObj& cmd, const OpTime& opTime) -> Status { BSONObjBuilder resultWeDontCareAbout; - return dropCollection(opCtx, parseNs(ns, cmd), resultWeDontCareAbout); + return dropCollection(opCtx, parseNs(ns, cmd), resultWeDontCareAbout, opTime); }, // IllegalOperation is necessary because in 3.0 we replicate drops of system.profile // TODO(dannenberg) remove IllegalOperation once we no longer need 3.0 compatibility |