summaryrefslogtreecommitdiff
path: root/src/mongo/db/concurrency/lock_state.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/concurrency/lock_state.cpp')
-rw-r--r--src/mongo/db/concurrency/lock_state.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/concurrency/lock_state.cpp b/src/mongo/db/concurrency/lock_state.cpp
index dc9bbdfd024..c0dbd4efcd2 100644
--- a/src/mongo/db/concurrency/lock_state.cpp
+++ b/src/mongo/db/concurrency/lock_state.cpp
@@ -447,7 +447,7 @@ namespace {
}
template<bool IsForMMAPV1>
- bool LockerImpl<IsForMMAPV1>::isDbLockedForMode(const StringData& dbName,
+ bool LockerImpl<IsForMMAPV1>::isDbLockedForMode(StringData dbName,
LockMode mode) const {
invariant(nsIsDbOnly(dbName));
@@ -459,7 +459,7 @@ namespace {
}
template<bool IsForMMAPV1>
- bool LockerImpl<IsForMMAPV1>::isCollectionLockedForMode(const StringData& ns,
+ bool LockerImpl<IsForMMAPV1>::isCollectionLockedForMode(StringData ns,
LockMode mode) const {
invariant(nsIsFull(ns));