summaryrefslogtreecommitdiff
path: root/src/mongo/db/s/op_observer_sharding_impl.h
diff options
context:
space:
mode:
authorJack Mulrow <jack.mulrow@mongodb.com>2018-10-22 12:41:33 -0400
committerJack Mulrow <jack.mulrow@mongodb.com>2018-10-30 10:06:41 -0400
commit3cdf605c16901f98472bdce6e0fc779d2d213ddb (patch)
treeb62adcd622991ae26fc02bcaa43dd92399bd980f /src/mongo/db/s/op_observer_sharding_impl.h
parent8dca4a066df2418c90c517fee3e656813697b5fa (diff)
downloadmongo-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.h9
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