summaryrefslogtreecommitdiff
path: root/db/cmdline.h
diff options
context:
space:
mode:
authorEliot Horowitz <eliot@10gen.com>2009-12-29 14:48:42 -0500
committerEliot Horowitz <eliot@10gen.com>2009-12-29 14:48:42 -0500
commit758cd7350d350b9dc9433fd1e8f04990cf7e5294 (patch)
tree610f4c6c5cb114c4c0a07d763f77ae067ab9adef /db/cmdline.h
parentf05a6aafb31d483b56dc1c9008e5b07e44a735ef (diff)
downloadmongo-758cd7350d350b9dc9433fd1e8f04990cf7e5294.tar.gz
configure "slow" queries
either --slowms on the command line or through setProfilingLevel SERVER-457
Diffstat (limited to 'db/cmdline.h')
-rw-r--r--db/cmdline.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/db/cmdline.h b/db/cmdline.h
index 6daf1e175c7..b07125953e1 100644
--- a/db/cmdline.h
+++ b/db/cmdline.h
@@ -38,7 +38,8 @@ namespace mongo {
long long oplogSize; // --oplogSize
int defaultProfile; // --profile
-
+ int slowMS; // --time in ms that is "slow"
+
enum {
DefaultDBPort = 27017,
ConfigServerPort = 27019,
@@ -47,7 +48,7 @@ namespace mongo {
CmdLine() :
port(DefaultDBPort), quiet(false), notablescan(false), prealloc(true), smallfiles(false),
- quota(false), quotaFiles(8), cpu(false), oplogSize(0), defaultProfile(0)
+ quota(false), quotaFiles(8), cpu(false), oplogSize(0), defaultProfile(0), slowMS(100)
{ }
};