diff options
author | Esha Maharishi <esha.maharishi@mongodb.com> | 2020-02-19 23:59:42 +0000 |
---|---|---|
committer | evergreen <evergreen@mongodb.com> | 2020-02-19 23:59:42 +0000 |
commit | beaac1def11ef1a70ed940567aa8f444a1b95d3e (patch) | |
tree | 36a63deb2dd3d12f91ddbac48e3bb26aa4c7bc3e /src/mongo/db/s/migration_source_manager.h | |
parent | 40296a983c2ace467788ea931229aa9d91311cd1 (diff) | |
download | mongo-beaac1def11ef1a70ed940567aa8f444a1b95d3e.tar.gz |
SERVER-46263 Make submitRangeDeletionTask return a future that completes when the range deletion completes
Diffstat (limited to 'src/mongo/db/s/migration_source_manager.h')
-rw-r--r-- | src/mongo/db/s/migration_source_manager.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/mongo/db/s/migration_source_manager.h b/src/mongo/db/s/migration_source_manager.h index 18bb1bbd919..09e58eea15e 100644 --- a/src/mongo/db/s/migration_source_manager.h +++ b/src/mongo/db/s/migration_source_manager.h @@ -272,9 +272,10 @@ private: boost::optional<CollectionCriticalSection> _critSec; LogicalSessionId _lsid; - // Future that completes when a range deletion task has been scheduled for a successfully moved - // away chunk. A value of boost::none indicates that the task was not submitted for processing. - boost::optional<SemiFuture<bool>> _scheduledRangeDeletionOnSuccess; + // Optional future that is populated if the migration succeeds and range deletion is scheduled + // on this node. The future is set when the range deletion completes. Used if the moveChunk was + // sent with waitForDelete. + boost::optional<SemiFuture<void>> _cleanupCompleteFuture; }; } // namespace mongo |