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_legacy.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_legacy.h')
-rw-r--r-- | src/mongo/db/s/migration_chunk_cloner_source_legacy.h | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/src/mongo/db/s/migration_chunk_cloner_source_legacy.h b/src/mongo/db/s/migration_chunk_cloner_source_legacy.h index d5f56e196ed..8e34e2033f3 100644 --- a/src/mongo/db/s/migration_chunk_cloner_source_legacy.h +++ b/src/mongo/db/s/migration_chunk_cloner_source_legacy.h @@ -119,16 +119,12 @@ public: const repl::OpTime& opTime, const repl::OpTime& preImageOpTime) override; - // Legacy cloner specific functionality - - /** - * Returns the migration session id associated with this cloner, so stale sessions can be - * disambiguated. - */ - const MigrationSessionId& getSessionId() const { + const MigrationSessionId& getSessionId() const override { return _sessionId; } + // Legacy cloner specific functionality + /** * Returns the rollback ID recorded at the beginning of session migration. If the underlying * SessionCatalogMigrationSource does not exist, that means this node is running as a standalone |