summaryrefslogtreecommitdiff
path: root/src/mongo/db/catalog_raii.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/catalog_raii.h')
-rw-r--r--src/mongo/db/catalog_raii.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/mongo/db/catalog_raii.h b/src/mongo/db/catalog_raii.h
index 081e566e7de..1d0b1e9238f 100644
--- a/src/mongo/db/catalog_raii.h
+++ b/src/mongo/db/catalog_raii.h
@@ -40,7 +40,8 @@ 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 dbHolder().get().
+ * obtains a reference to the database. Used as a shortcut for calls to
+ * DatabaseHolder::getDatabaseHolder().get().
*
* Use this when you want to do a database-level operation, like read a list of all collections, or
* drop a collection.
@@ -152,9 +153,9 @@ 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 dbHolder().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.
+ * calls to DatabaseHolder::getDatabaseHolder().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.
*
* Use this when you are about to perform a write, and want to create the database if it doesn't
* already exist.