diff options
author | Kaloian Manassiev <kaloian.manassiev@mongodb.com> | 2014-12-15 15:38:44 -0500 |
---|---|---|
committer | Kaloian Manassiev <kaloian.manassiev@mongodb.com> | 2014-12-17 11:27:15 -0500 |
commit | c5ebc6be8e3a865655acbc5ecd1cb3b96fdf44ff (patch) | |
tree | a8f5a606481a6f1d29deaf445da1a844366b409f /src/mongo/db/catalog/database.h | |
parent | f312681a62f15196d0638da50350dd6a9c693e36 (diff) | |
download | mongo-c5ebc6be8e3a865655acbc5ecd1cb3b96fdf44ff.tar.gz |
SERVER-16431 Simplify DB profile code
Diffstat (limited to 'src/mongo/db/catalog/database.h')
-rw-r--r-- | src/mongo/db/catalog/database.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/mongo/db/catalog/database.h b/src/mongo/db/catalog/database.h index 23354d3e307..ea4c2e80724 100644 --- a/src/mongo/db/catalog/database.h +++ b/src/mongo/db/catalog/database.h @@ -69,9 +69,12 @@ namespace mongo { void clearTmpCollections(OperationContext* txn); /** - * @return true if success. false if bad level or error creating profile ns + * Sets a new profiling level for the database and returns the outcome. + * + * @param txn Operation context which to use for creating the profiling collection. + * @param newLevel New profiling level to use. */ - bool setProfilingLevel( OperationContext* txn, int newLevel , std::string& errmsg ); + Status setProfilingLevel(OperationContext* txn, int newLevel); /** * @return true if ns is part of the database |