summaryrefslogtreecommitdiff
path: root/src/mongo/db/introspect.h
diff options
context:
space:
mode:
authorEliot Horowitz <eliot@10gen.com>2013-12-23 13:55:34 -0500
committerEliot Horowitz <eliot@10gen.com>2013-12-28 21:26:53 -0500
commit6ef65f8e21454d35febc7b992a6a23c2b98a3ebd (patch)
treed2c4c119b37fd2dec5b12039b1e5bd5a973c67f0 /src/mongo/db/introspect.h
parent438c631c48a3da079eb27cf90049f9e9eab5232f (diff)
downloadmongo-6ef65f8e21454d35febc7b992a6a23c2b98a3ebd.tar.gz
SERVER-11611: profile writing code now uses Collection::insertDocument
Diffstat (limited to 'src/mongo/db/introspect.h')
-rw-r--r--src/mongo/db/introspect.h12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/mongo/db/introspect.h b/src/mongo/db/introspect.h
index 487efdbf027..faca137d137 100644
--- a/src/mongo/db/introspect.h
+++ b/src/mongo/db/introspect.h
@@ -31,12 +31,16 @@
#pragma once
-#include "mongo/pch.h"
+#include <string>
+
+#include "mongo/db/curop.h"
#include "mongo/db/jsobj.h"
-#include "mongo/db/pdfile.h"
namespace mongo {
+ class Collection;
+ class Database;
+
/* --- profiling --------------------------------------------
do when database->profile is set
*/
@@ -50,6 +54,8 @@ namespace mongo {
* @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, string* errmsg = NULL);
+ Collection* getOrCreateProfileCollection(Database *db,
+ bool force = false,
+ std::string* errmsg = NULL);
} // namespace mongo