diff options
author | Eliot Horowitz <eliot@10gen.com> | 2009-12-29 14:48:42 -0500 |
---|---|---|
committer | Eliot Horowitz <eliot@10gen.com> | 2009-12-29 14:48:42 -0500 |
commit | 758cd7350d350b9dc9433fd1e8f04990cf7e5294 (patch) | |
tree | 610f4c6c5cb114c4c0a07d763f77ae067ab9adef /db/cmdline.h | |
parent | f05a6aafb31d483b56dc1c9008e5b07e44a735ef (diff) | |
download | mongo-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.h | 5 |
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) { } }; |