diff options
author | Eliot Horowitz <eliot@10gen.com> | 2013-12-23 13:55:34 -0500 |
---|---|---|
committer | Eliot Horowitz <eliot@10gen.com> | 2013-12-28 21:26:53 -0500 |
commit | 6ef65f8e21454d35febc7b992a6a23c2b98a3ebd (patch) | |
tree | d2c4c119b37fd2dec5b12039b1e5bd5a973c67f0 /src/mongo/db/introspect.h | |
parent | 438c631c48a3da079eb27cf90049f9e9eab5232f (diff) | |
download | mongo-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.h | 12 |
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 |