From 6ef65f8e21454d35febc7b992a6a23c2b98a3ebd Mon Sep 17 00:00:00 2001 From: Eliot Horowitz Date: Mon, 23 Dec 2013 13:55:34 -0500 Subject: SERVER-11611: profile writing code now uses Collection::insertDocument --- src/mongo/db/introspect.h | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'src/mongo/db/introspect.h') 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 + +#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 -- cgit v1.2.1