diff options
Diffstat (limited to 'src/mongo/s/d_split.cpp')
-rw-r--r-- | src/mongo/s/d_split.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mongo/s/d_split.cpp b/src/mongo/s/d_split.cpp index e2d06e61853..5fd9af4ce63 100644 --- a/src/mongo/s/d_split.cpp +++ b/src/mongo/s/d_split.cpp @@ -652,7 +652,8 @@ public: const string whyMessage(str::stream() << "splitting chunk [" << min << ", " << max << ") in " << nss.toString()); - auto scopedDistLock = grid.forwardingCatalogManager()->distLock(txn, nss.ns(), whyMessage); + auto scopedDistLock = grid.catalogManager(txn)->distLock( + txn, nss.ns(), whyMessage, DistLockManager::kSingleLockAttemptTimeout); if (!scopedDistLock.isOK()) { errmsg = str::stream() << "could not acquire collection lock for " << nss.toString() << " to split chunk [" << min << "," << max << ")" |