diff options
author | Eliot Horowitz <eliot@10gen.com> | 2010-11-22 01:10:35 -0500 |
---|---|---|
committer | Eliot Horowitz <eliot@10gen.com> | 2010-11-22 01:10:35 -0500 |
commit | a47cae76249e2a2f679a853782d6988d99793471 (patch) | |
tree | 092356b5b84e007f6c0c947f5eb81f704aed35e5 /db/cmdline.h | |
parent | c3c7a22e6370a6099196df87c1a96ab9c00a7068 (diff) | |
download | mongo-a47cae76249e2a2f679a853782d6988d99793471.tar.gz |
syncdelay in CmdLine and controllable via get/set SERVER-1843
Diffstat (limited to 'db/cmdline.h')
-rw-r--r-- | db/cmdline.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/db/cmdline.h b/db/cmdline.h index 21b3f87f015..f4039675701 100644 --- a/db/cmdline.h +++ b/db/cmdline.h @@ -26,7 +26,8 @@ namespace mongo { struct CmdLine { CmdLine() : port(DefaultDBPort), rest(false), jsonp(false), quiet(false), noTableScan(false), prealloc(true), smallfiles(false), - quota(false), quotaFiles(8), cpu(false), oplogSize(0), defaultProfile(0), slowMS(100), pretouch(0), moveParanoia( true ) + quota(false), quotaFiles(8), cpu(false), oplogSize(0), defaultProfile(0), slowMS(100), pretouch(0), moveParanoia( true ), + syncdelay(60) { } string binaryName; // mongod or mongos @@ -71,7 +72,8 @@ namespace mongo { int pretouch; // --pretouch for replication application (experimental) bool moveParanoia; // for move chunk paranoia - + double syncdelay; // seconds between fsyncs + static void addGlobalOptions( boost::program_options::options_description& general , boost::program_options::options_description& hidden ); |