summaryrefslogtreecommitdiff
path: root/src/mongo/db/op_observer_impl.h
diff options
context:
space:
mode:
authorBlake Oler <blake.oler@mongodb.com>2019-04-11 14:52:41 -0400
committerBlake Oler <blake.oler@mongodb.com>2019-04-24 13:14:31 -0400
commitcde931d2154150ca681e147d47921f51801de174 (patch)
tree1720911de858f21c739f3a3ec5ec7d337b627052 /src/mongo/db/op_observer_impl.h
parent18181d9825ddc62351a6ba94325a38353086248c (diff)
downloadmongo-cde931d2154150ca681e147d47921f51801de174.tar.gz
SERVER-39940 Model a shard key update as a delete inside the chunk migration cloner if the document moves out of a currently-migrating chunk
Diffstat (limited to 'src/mongo/db/op_observer_impl.h')
-rw-r--r--src/mongo/db/op_observer_impl.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mongo/db/op_observer_impl.h b/src/mongo/db/op_observer_impl.h
index 29b319d77c7..07c7542c342 100644
--- a/src/mongo/db/op_observer_impl.h
+++ b/src/mongo/db/op_observer_impl.h
@@ -169,7 +169,8 @@ private:
const bool inMultiDocumentTransaction) {}
virtual void shardObserveUpdateOp(OperationContext* opCtx,
const NamespaceString nss,
- const BSONObj& updatedDoc,
+ boost::optional<BSONObj> preImageDoc,
+ const BSONObj& postImageDoc,
const repl::OpTime& opTime,
const repl::OpTime& prePostImageOpTime,
const bool inMultiDocumentTransaction) {}