diff options
author | Kaloian Manassiev <kaloian.manassiev@mongodb.com> | 2016-09-07 14:58:52 -0400 |
---|---|---|
committer | Kaloian Manassiev <kaloian.manassiev@mongodb.com> | 2016-09-08 11:59:35 -0400 |
commit | c62a0d7c882e99d3b255e26ade7baaa0d18244cb (patch) | |
tree | a84bdc8a26e3032e234fbd111c86dd41f560e84c /src/mongo/s/catalog/dist_lock_catalog_mock.cpp | |
parent | 11540cd54638c07708c056eb288d0b4c27b1a8e9 (diff) | |
download | mongo-c62a0d7c882e99d3b255e26ade7baaa0d18244cb.tar.gz |
SERVER-26013 Remove ShardingCatalogClient::distLock and cleanup DistLockManager
Diffstat (limited to 'src/mongo/s/catalog/dist_lock_catalog_mock.cpp')
-rw-r--r-- | src/mongo/s/catalog/dist_lock_catalog_mock.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/mongo/s/catalog/dist_lock_catalog_mock.cpp b/src/mongo/s/catalog/dist_lock_catalog_mock.cpp index ef95de4a1b5..3bfac90253a 100644 --- a/src/mongo/s/catalog/dist_lock_catalog_mock.cpp +++ b/src/mongo/s/catalog/dist_lock_catalog_mock.cpp @@ -38,8 +38,8 @@ #include "mongo/util/mongoutils/str.h" namespace mongo { - namespace { + Status kBadRetValue(ErrorCodes::InternalError, "no return value"); StatusWith<LocksType> kLocksTypeBadRetValue(kBadRetValue); StatusWith<LockpingsType> kLockpingsTypeBadRetValue(kBadRetValue); @@ -120,7 +120,7 @@ void noGetServerInfoSet() { FAIL("getServerInfo not expected to be called"); } -} // unnamed namespace +} // namespace DistLockCatalogMock::DistLockCatalogMock() : _grabLockChecker(noGrabLockFuncSet), @@ -373,4 +373,5 @@ Status DistLockCatalogMock::unlockAll(OperationContext* txn, const std::string& return Status(ErrorCodes::IllegalOperation, str::stream() << "unlockAll not expected to be called; processID: " << processID); } -} + +} // namespace mongo |