diff options
Diffstat (limited to 'src/mongo/dbtests/basictests.cpp')
-rw-r--r-- | src/mongo/dbtests/basictests.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mongo/dbtests/basictests.cpp b/src/mongo/dbtests/basictests.cpp index bac468c1650..2b9ac117b85 100644 --- a/src/mongo/dbtests/basictests.cpp +++ b/src/mongo/dbtests/basictests.cpp @@ -376,8 +376,9 @@ namespace BasicTests { class DatabaseOwnsNS { public: void run() { - Lock::GlobalWrite lk; OperationContextImpl txn; + Lock::GlobalWrite lk(txn.lockState()); + bool isNew = false; // this leaks as ~Database is private // if that changes, should put this on the stack |