|
Author:
{'name': 'Max Hirschhorn', 'email': 'max.hirschhorn@mongodb.com', 'username': 'visemet'}
Message: SERVER-51493 SERVER-52922 SERVER-52938 Create ReshardingTxnCloner class.
Introduces sharded_agg_helpers::runPipelineDirectlyOnSingleShard()
function to replace the usage of the Fetcher class. ReshardingTxnCloner
yields its thread while waiting for a prepared transaction on a session
to commit or abort. ReshardingTxnCloner runs on the recipient
primary-only service's task executor rather than on the fixed executor.
The returned mongo::Future is readied when the cloning procedure has
completed successfully or failed with an error.
ReshardingTxnCloner reads the progress document from the
config.localReshardingOperations.recipient.progress_txn_cloner
collection when starting up. The reshardingTxnClonerProgressBatchSize
server parameter controls how often ReshardingTxnCloner updates its
progress document.
Branch: master
https://github.com/mongodb/mongo/commit/a3566ca80376617843c642cf0e5891b2f08681f2
|