From 4270e87c62a2c7ea365b20bb37ede7e3888ad0ed Mon Sep 17 00:00:00 2001 From: Benety Goh Date: Thu, 20 Dec 2018 23:34:46 -0500 Subject: SERVER-38719 rename DatabaseHolder::get() to getDb() Repurpose DatabaseHolder::get() for accessing singleton. Deprecate DatabaseHolder::getDatabaseHolder(). --- src/mongo/db/catalog_raii.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/mongo/db/catalog_raii.h') diff --git a/src/mongo/db/catalog_raii.h b/src/mongo/db/catalog_raii.h index 4bb0a610c44..191dcce52c8 100644 --- a/src/mongo/db/catalog_raii.h +++ b/src/mongo/db/catalog_raii.h @@ -43,7 +43,7 @@ namespace mongo { /** * RAII-style class, which acquires a lock on the specified database in the requested mode and * obtains a reference to the database. Used as a shortcut for calls to - * DatabaseHolder::getDatabaseHolder().get(). + * DatabaseHolder::get(opCtx)->get(). * * Use this when you want to do a database-level operation, like read a list of all collections, or * drop a collection. @@ -155,7 +155,7 @@ private: /** * RAII-style class, which acquires a lock on the specified database in the requested mode and * obtains a reference to the database, creating it was non-existing. Used as a shortcut for - * calls to DatabaseHolder::getDatabaseHolder().openDb(), taking care of locking details. The + * calls to DatabaseHolder::get(opCtx)->openDb(), taking care of locking details. The * requested mode must be MODE_IX or MODE_X. If the database needs to be created, the lock will * automatically be reacquired as MODE_X. * -- cgit v1.2.1