summaryrefslogtreecommitdiff
path: root/src/mongo/db/catalog_raii.h
diff options
context:
space:
mode:
authorBenety Goh <benety@mongodb.com>2018-12-20 23:34:46 -0500
committerBenety Goh <benety@mongodb.com>2018-12-20 23:35:03 -0500
commit4270e87c62a2c7ea365b20bb37ede7e3888ad0ed (patch)
tree2d5b891bb3934dfaa09e87d3294a7653e401b7d1 /src/mongo/db/catalog_raii.h
parent3c140cdd63bbf20e585bbbccd21ed3ea64e656b1 (diff)
downloadmongo-4270e87c62a2c7ea365b20bb37ede7e3888ad0ed.tar.gz
SERVER-38719 rename DatabaseHolder::get() to getDb()
Repurpose DatabaseHolder::get() for accessing singleton. Deprecate DatabaseHolder::getDatabaseHolder().
Diffstat (limited to 'src/mongo/db/catalog_raii.h')
-rw-r--r--src/mongo/db/catalog_raii.h4
1 files changed, 2 insertions, 2 deletions
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.
*