diff options
author | Alex Taskov <alex.taskov@mongodb.com> | 2020-02-19 18:45:49 -0500 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2020-02-20 14:19:15 +0000 |
commit | 742fa16dc379a281ad3c10e8c196d5ab2de9f70e (patch) | |
tree | 9e4c4700e921ca2cab58e9909ec764667f6e6ce9 /src/mongo/db/s/migration_chunk_cloner_source.h | |
parent | 32f47846d78a4fdae9564b7ebb442d53e737d845 (diff) | |
download | mongo-742fa16dc379a281ad3c10e8c196d5ab2de9f70e.tar.gz |
SERVER-45744 Migration coordinator recovery task should bump the txnNumber on the session used to send _recvChunkStart
create mode 100644 jstests/sharding/bump_transaction_prevents_extra_deletion_task_write.js
Diffstat (limited to 'src/mongo/db/s/migration_chunk_cloner_source.h')
-rw-r--r-- | src/mongo/db/s/migration_chunk_cloner_source.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mongo/db/s/migration_chunk_cloner_source.h b/src/mongo/db/s/migration_chunk_cloner_source.h index cb4ebb53a29..00e17e8fe3a 100644 --- a/src/mongo/db/s/migration_chunk_cloner_source.h +++ b/src/mongo/db/s/migration_chunk_cloner_source.h @@ -35,6 +35,7 @@ namespace mongo { class BSONObj; +class MigrationSessionId; class OperationContext; class Status; class Timestamp; @@ -161,6 +162,12 @@ public: const repl::OpTime& opTime, const repl::OpTime& preImageOpTime) = 0; + /** + * Returns the migration session id associated with this cloner, so stale sessions can be + * disambiguated. + */ + virtual const MigrationSessionId& getSessionId() const = 0; + protected: MigrationChunkClonerSource(); }; |