diff options
Diffstat (limited to 'src/mongo/db/catalog_raii.h')
-rw-r--r-- | src/mongo/db/catalog_raii.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/mongo/db/catalog_raii.h b/src/mongo/db/catalog_raii.h index 5f5614d5622..69f2abac298 100644 --- a/src/mongo/db/catalog_raii.h +++ b/src/mongo/db/catalog_raii.h @@ -73,10 +73,9 @@ public: /** * Returns the database, creating it if it does not exist. */ - Database* ensureDbExists(); + Database* ensureDbExists(OperationContext* opCtx); private: - OperationContext* _opCtx; std::string _dbName; Lock::DBLock _dbLock; @@ -139,7 +138,7 @@ public: * Returns the database, creating it if it does not exist. */ Database* ensureDbExists() { - return _autoDb.ensureDbExists(); + return _autoDb.ensureDbExists(_opCtx); } /** |