summaryrefslogtreecommitdiff
path: root/src/mongo/db/s/range_deletion_util.cpp
diff options
context:
space:
mode:
authorEsha Maharishi <esha.maharishi@mongodb.com>2020-01-23 21:01:50 +0000
committerevergreen <evergreen@mongodb.com>2020-01-23 21:01:50 +0000
commit012c1fe282af7721ce6bb17efa67eb73443be06e (patch)
tree9d85833febfc158d26ace322bda61ba07237ecef /src/mongo/db/s/range_deletion_util.cpp
parentb5070e639428cfcaf6dcb616dc171bf36e45c311 (diff)
downloadmongo-012c1fe282af7721ce6bb17efa67eb73443be06e.tar.gz
SERVER-45441 submitRangeDeletionTask should force a refresh if the metadata is unknown and delete the range deletion task if the metadata is still unknown or UUID doesn't match after the refresh
Diffstat (limited to 'src/mongo/db/s/range_deletion_util.cpp')
-rw-r--r--src/mongo/db/s/range_deletion_util.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mongo/db/s/range_deletion_util.cpp b/src/mongo/db/s/range_deletion_util.cpp
index 561b032a452..65388667e3e 100644
--- a/src/mongo/db/s/range_deletion_util.cpp
+++ b/src/mongo/db/s/range_deletion_util.cpp
@@ -51,6 +51,7 @@
#include "mongo/db/query/query_knobs_gen.h"
#include "mongo/db/query/query_planner.h"
#include "mongo/db/repl/repl_client_info.h"
+#include "mongo/db/s/migration_util.h"
#include "mongo/db/s/persistent_task_store.h"
#include "mongo/db/s/range_deletion_task_gen.h"
#include "mongo/db/s/sharding_statistics.h"
@@ -210,7 +211,7 @@ StatusWith<int> deleteNextBatch(OperationContext* opCtx,
template <typename Callable>
auto withTemporaryOperationContext(Callable&& callable) {
- ThreadClient tc("Collection-Range-Deleter", getGlobalServiceContext());
+ ThreadClient tc(migrationutil::kRangeDeletionThreadName, getGlobalServiceContext());
{
stdx::lock_guard<Client> lk(*tc.get());
tc->setSystemOperationKillable(lk);