diff options
author | Jack Mulrow <jack.mulrow@mongodb.com> | 2018-10-22 12:41:33 -0400 |
---|---|---|
committer | Jack Mulrow <jack.mulrow@mongodb.com> | 2018-10-30 10:06:41 -0400 |
commit | 3cdf605c16901f98472bdce6e0fc779d2d213ddb (patch) | |
tree | b62adcd622991ae26fc02bcaa43dd92399bd980f /src/mongo/db/s/op_observer_sharding_impl.h | |
parent | 8dca4a066df2418c90c517fee3e656813697b5fa (diff) | |
download | mongo-3cdf605c16901f98472bdce6e0fc779d2d213ddb.tar.gz |
SERVER-37350 Shards should reject writes in snapshot sharded transactions to chunks that have moved
Diffstat (limited to 'src/mongo/db/s/op_observer_sharding_impl.h')
-rw-r--r-- | src/mongo/db/s/op_observer_sharding_impl.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/mongo/db/s/op_observer_sharding_impl.h b/src/mongo/db/s/op_observer_sharding_impl.h index fa491fb8904..a11a20da21c 100644 --- a/src/mongo/db/s/op_observer_sharding_impl.h +++ b/src/mongo/db/s/op_observer_sharding_impl.h @@ -51,17 +51,20 @@ protected: const NamespaceString nss, const BSONObj& insertedDoc, const repl::OpTime& opTime, - const bool fromMigrate) override; + const bool fromMigrate, + const bool inMultiDocumentTransaction) override; void shardObserveUpdateOp(OperationContext* opCtx, const NamespaceString nss, const BSONObj& updatedDoc, const repl::OpTime& opTime, - const repl::OpTime& prePostImageOpTime) override; + const repl::OpTime& prePostImageOpTime, + const bool inMultiDocumentTransaction) override; void shardObserveDeleteOp(OperationContext* opCtx, const NamespaceString nss, const BSONObj& documentKey, const repl::OpTime& opTime, - const repl::OpTime& preImageOpTime) override; + const repl::OpTime& preImageOpTime, + const bool inMultiDocumentTransaction) override; }; } // namespace mongo |