diff options
author | Mathias Stearn <mathias@10gen.com> | 2014-04-28 20:55:18 -0400 |
---|---|---|
committer | Mathias Stearn <mathias@10gen.com> | 2014-04-29 09:14:59 -0400 |
commit | de5ea8fd8682d086de86636d9fff80720939790e (patch) | |
tree | bc1ad8171f539a97333df978fbae16aa53a490f9 /src/mongo/db/introspect.h | |
parent | a16b3afd4f6760a8818da0888ebd330e92d381a2 (diff) | |
download | mongo-de5ea8fd8682d086de86636d9fff80720939790e.tar.gz |
SERVER-13643 Move Txn pluming above Database and Collection
Diffstat (limited to 'src/mongo/db/introspect.h')
-rw-r--r-- | src/mongo/db/introspect.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mongo/db/introspect.h b/src/mongo/db/introspect.h index 50b98656bc2..f45d9796b34 100644 --- a/src/mongo/db/introspect.h +++ b/src/mongo/db/introspect.h @@ -40,12 +40,13 @@ namespace mongo { class Collection; class Database; + class TransactionExperiment; /* --- profiling -------------------------------------------- do when database->profile is set */ - void profile(const Client& c, int op, CurOp& currentOp); + void profile(TransactionExperiment* txn, const Client& c, int op, CurOp& currentOp); /** * Get (or create) the profile collection @@ -54,7 +55,8 @@ namespace mongo { * @param force Always create the collection if it does not exist * @return Collection for the newly created collection, or NULL on error **/ - Collection* getOrCreateProfileCollection(Database *db, + Collection* getOrCreateProfileCollection(TransactionExperiment* txn, + Database *db, bool force = false, std::string* errmsg = NULL); |