diff options
author | Randolph Tan <randolph@10gen.com> | 2021-09-21 16:19:56 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-09-21 17:03:47 +0000 |
commit | 800c6d40912751e272853e383f4c4bf1f00e5c88 (patch) | |
tree | b65e26e73d5a26fdca4ec297fc0c283cb90f29b4 /src/mongo/db/s/op_observer_sharding_impl.h | |
parent | 536cd38e7ab615181f5586519f60728c52e47108 (diff) | |
download | mongo-800c6d40912751e272853e383f4c4bf1f00e5c88.tar.gz |
SERVER-58915 Implement ReshardingDonorWriteRouter functionality along…
Diffstat (limited to 'src/mongo/db/s/op_observer_sharding_impl.h')
-rw-r--r-- | src/mongo/db/s/op_observer_sharding_impl.h | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/src/mongo/db/s/op_observer_sharding_impl.h b/src/mongo/db/s/op_observer_sharding_impl.h index 0fafcf833ff..f9005497c57 100644 --- a/src/mongo/db/s/op_observer_sharding_impl.h +++ b/src/mongo/db/s/op_observer_sharding_impl.h @@ -33,6 +33,8 @@ namespace mongo { +class ShardingWriteRouter; + class OpObserverShardingImpl : public OpObserverImpl { public: // True if the document being deleted belongs to a chunk which, while still in the shard, @@ -50,7 +52,7 @@ protected: NamespaceString nss, const BSONObj& insertedDoc, const repl::OpTime& opTime, - CollectionShardingState* css, + const ShardingWriteRouter& shardingWriteRouter, bool fromMigrate, bool inMultiDocumentTransaction) override; void shardObserveUpdateOp(OperationContext* opCtx, @@ -58,27 +60,20 @@ protected: boost::optional<BSONObj> preImageDoc, const BSONObj& updatedDoc, const repl::OpTime& opTime, - CollectionShardingState* css, + const ShardingWriteRouter& shardingWriteRouter, const repl::OpTime& prePostImageOpTime, bool inMultiDocumentTransaction) override; void shardObserveDeleteOp(OperationContext* opCtx, NamespaceString nss, const BSONObj& documentKey, const repl::OpTime& opTime, - CollectionShardingState* css, + const ShardingWriteRouter& shardingWriteRouter, const repl::OpTime& preImageOpTime, bool inMultiDocumentTransaction) override; void shardObserveTransactionPrepareOrUnpreparedCommit( OperationContext* opCtx, const std::vector<repl::ReplOperation>& stmts, const repl::OpTime& prepareOrCommitOptime) override; - - void shardAnnotateOplogEntry(OperationContext* opCtx, - NamespaceString nss, - const BSONObj& doc, - repl::DurableReplOperation& op, - CollectionShardingState* css, - const ScopedCollectionDescription& collDesc) override; }; } // namespace mongo |