diff options
author | Esha Maharishi <esha.maharishi@mongodb.com> | 2020-02-28 16:05:18 -0500 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2020-03-18 13:53:59 +0000 |
commit | 5ab0e5571a01dea57897fa77f1419f415f4f15b4 (patch) | |
tree | 959eec0b2bb508c62fee41770a18845a191cf081 /src/mongo/db/s/migration_util.cpp | |
parent | 4d87339d4b427966b9b9fcf879c17bef08437f94 (diff) | |
download | mongo-5ab0e5571a01dea57897fa77f1419f415f4f15b4.tar.gz |
SERVER-44160 Make cleanupOrphaned just wait for all range deletion tasks on the ns to finish in FCV 4.4 when 'disableResumableRangeDeleter' is false
Diffstat (limited to 'src/mongo/db/s/migration_util.cpp')
-rw-r--r-- | src/mongo/db/s/migration_util.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mongo/db/s/migration_util.cpp b/src/mongo/db/s/migration_util.cpp index 36b9c7b1177..e85fbd1d5c5 100644 --- a/src/mongo/db/s/migration_util.cpp +++ b/src/mongo/db/s/migration_util.cpp @@ -220,12 +220,12 @@ Query overlappingRangeQuery(const ChunkRange& range, const UUID& uuid) { << GT << range.getMin()); } -bool checkForConflictingDeletions(OperationContext* opCtx, - const ChunkRange& range, - const UUID& uuid) { +size_t checkForConflictingDeletions(OperationContext* opCtx, + const ChunkRange& range, + const UUID& uuid) { PersistentTaskStore<RangeDeletionTask> store(opCtx, NamespaceString::kRangeDeletionNamespace); - return store.count(opCtx, overlappingRangeQuery(range, uuid)) > 0; + return store.count(opCtx, overlappingRangeQuery(range, uuid)); } ExecutorFuture<void> submitRangeDeletionTask(OperationContext* opCtx, |