summaryrefslogtreecommitdiff
path: root/src/mongo/dbtests/namespacetests.cpp
diff options
context:
space:
mode:
authorKaloian Manassiev <kaloian.manassiev@mongodb.com>2014-09-26 14:02:49 -0400
committerKaloian Manassiev <kaloian.manassiev@mongodb.com>2014-10-06 17:30:12 -0400
commit101e026f45dea5e9e68520238495c89a476e6172 (patch)
treebbdd3710ffc5721527ad9f5682ef0dbb4876dfee /src/mongo/dbtests/namespacetests.cpp
parent10c86dc6cad9853514148e0ab59894a0d29353b9 (diff)
downloadmongo-101e026f45dea5e9e68520238495c89a476e6172.tar.gz
SERVER-14668/SERVER-15294 Collection-level locking for all read paths
Diffstat (limited to 'src/mongo/dbtests/namespacetests.cpp')
-rw-r--r--src/mongo/dbtests/namespacetests.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/dbtests/namespacetests.cpp b/src/mongo/dbtests/namespacetests.cpp
index 72a27859efa..a33f33ef06c 100644
--- a/src/mongo/dbtests/namespacetests.cpp
+++ b/src/mongo/dbtests/namespacetests.cpp
@@ -527,7 +527,7 @@ namespace NamespaceTests {
Lock::DBWrite lk(txn.lockState(), dbName);
bool justCreated;
- Database* db = dbHolder().getOrCreate(&txn, dbName, justCreated);
+ Database* db = dbHolder().openDb(&txn, dbName, &justCreated);
ASSERT(justCreated);
Collection* committedColl;
@@ -570,7 +570,7 @@ namespace NamespaceTests {
Lock::DBWrite lk(txn.lockState(), dbName);
bool justCreated;
- Database* db = dbHolder().getOrCreate(&txn, dbName, justCreated);
+ Database* db = dbHolder().openDb(&txn, dbName, &justCreated);
ASSERT(justCreated);
{