summaryrefslogtreecommitdiff
path: root/src/mongo/db/catalog_raii.cpp
diff options
context:
space:
mode:
authorGabe Villasana <gabe.villasana@mongodb.com>2019-05-30 13:48:26 -0400
committerGabe Villasana <gabe.villasana@mondodb.com>2019-05-31 11:26:46 -0400
commit64848ce3a7d0f1af4d384473664bc80aa47fcb55 (patch)
tree6a91fd7af17fe8feda3536214aeea53650460050 /src/mongo/db/catalog_raii.cpp
parent36389e9fbb1bf1cc0aaba16e6b46adc171a34f46 (diff)
downloadmongo-64848ce3a7d0f1af4d384473664bc80aa47fcb55.tar.gz
SERVER-38105 Removed unused uassertLockTimeout method
Diffstat (limited to 'src/mongo/db/catalog_raii.cpp')
-rw-r--r--src/mongo/db/catalog_raii.cpp8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/mongo/db/catalog_raii.cpp b/src/mongo/db/catalog_raii.cpp
index 1293f752769..d3e4c1f5e60 100644
--- a/src/mongo/db/catalog_raii.cpp
+++ b/src/mongo/db/catalog_raii.cpp
@@ -42,14 +42,6 @@ namespace {
MONGO_FAIL_POINT_DEFINE(setAutoGetCollectionWait);
-void uassertLockTimeout(std::string resourceName, LockMode lockMode, bool isLocked) {
- uassert(ErrorCodes::LockTimeout,
- str::stream() << "Failed to acquire " << modeName(lockMode) << " lock for "
- << resourceName
- << " due to lock timeout.",
- isLocked);
-}
-
} // namespace
AutoGetDb::AutoGetDb(OperationContext* opCtx, StringData dbName, LockMode mode, Date_t deadline)