summaryrefslogtreecommitdiff
path: root/src/mongo/db/introspect.h
diff options
context:
space:
mode:
authorBen Becker <ben.becker@10gen.com>2012-07-02 12:16:04 -0700
committerBen Becker <ben.becker@10gen.com>2012-07-02 12:16:13 -0700
commit1d58eed0e23bb446388205a1df7f3eebef1f29a2 (patch)
treeb9c1e0d8ae920840f579122f93fff313d228d6f3 /src/mongo/db/introspect.h
parent7a43c2260ee58f82fc44e55c021b74d821e4a16e (diff)
downloadmongo-1d58eed0e23bb446388205a1df7f3eebef1f29a2.tar.gz
SERVER-6222: lazy init profile collection
Diffstat (limited to 'src/mongo/db/introspect.h')
-rw-r--r--src/mongo/db/introspect.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/mongo/db/introspect.h b/src/mongo/db/introspect.h
index 209eeacab7c..c0dc425c692 100644
--- a/src/mongo/db/introspect.h
+++ b/src/mongo/db/introspect.h
@@ -31,4 +31,13 @@ namespace mongo {
void profile( const Client& c , CurOp& currentOp );
+ /**
+ * Get (or create) the profile collection
+ *
+ * @param db Database in which to create the profile collection
+ * @param force Always create the collection if it does not exist
+ * @return NamespaceDetails for the newly created collection, or NULL on error
+ **/
+ NamespaceDetails* getOrCreateProfileCollection(Database *db, bool force = false);
+
} // namespace mongo