diff options
Diffstat (limited to 'src/mongo/db/s/config/configsvr_drop_collection_command.cpp')
-rw-r--r-- | src/mongo/db/s/config/configsvr_drop_collection_command.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/mongo/db/s/config/configsvr_drop_collection_command.cpp b/src/mongo/db/s/config/configsvr_drop_collection_command.cpp index 66c2cb94653..06970e7ecf3 100644 --- a/src/mongo/db/s/config/configsvr_drop_collection_command.cpp +++ b/src/mongo/db/s/config/configsvr_drop_collection_command.cpp @@ -111,10 +111,8 @@ public: opCtx->getWriteConcern().wMode == WriteConcernOptions::kMajority); Seconds waitFor(DistLockManager::kDefaultLockTimeout); - MONGO_FAIL_POINT_BLOCK(setDropCollDistLockWait, customWait) { - const BSONObj& data = customWait.getData(); - waitFor = Seconds(data["waitForSecs"].numberInt()); - } + setDropCollDistLockWait.execute( + [&](const BSONObj& data) { waitFor = Seconds(data["waitForSecs"].numberInt()); }); auto const catalogClient = Grid::get(opCtx)->catalogClient(); |