diff options
Diffstat (limited to 'src/mongo/db/introspect.h')
-rw-r--r-- | src/mongo/db/introspect.h | 9 |
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 |