diff options
author | Kaloian Manassiev <kaloian.manassiev@mongodb.com> | 2017-07-12 15:59:59 -0400 |
---|---|---|
committer | Kaloian Manassiev <kaloian.manassiev@mongodb.com> | 2017-07-13 09:19:05 -0400 |
commit | fc300ed58b943b93a3164103e4a767e3f81d1c3b (patch) | |
tree | 2ff6a0e61b4b1c40a93e83dd063f6ee3ea9ec8ca /src/mongo/db/s/split_chunk_command.cpp | |
parent | 98bb1900c5aa0c8f7ede0b9df201f9cd9b7c9da5 (diff) | |
download | mongo-fc300ed58b943b93a3164103e4a767e3f81d1c3b.tar.gz |
SERVER-30053 Remove 'opCtx' parameter from Grid::catalogClient()
This method is now just a simple getter and doesn't require operation
context.
Diffstat (limited to 'src/mongo/db/s/split_chunk_command.cpp')
-rw-r--r-- | src/mongo/db/s/split_chunk_command.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/s/split_chunk_command.cpp b/src/mongo/db/s/split_chunk_command.cpp index 846d6ca4b87..cfc2c04ad55 100644 --- a/src/mongo/db/s/split_chunk_command.cpp +++ b/src/mongo/db/s/split_chunk_command.cpp @@ -232,7 +232,7 @@ public: const string whyMessage(str::stream() << "splitting chunk [" << min << ", " << max << ") in " << nss.toString()); - auto scopedDistLock = grid.catalogClient(opCtx)->getDistLockManager()->lock( + auto scopedDistLock = Grid::get(opCtx)->catalogClient()->getDistLockManager()->lock( opCtx, nss.ns(), whyMessage, DistLockManager::kSingleLockAttemptTimeout); if (!scopedDistLock.isOK()) { errmsg = str::stream() << "could not acquire collection lock for " << nss.toString() |