summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEliot Horowitz <eliot@10gen.com>2011-03-11 16:38:50 -0500
committerEliot Horowitz <eliot@10gen.com>2011-03-11 16:55:14 -0500
commite89833c5d2e2a563e3f6cfe1ecb30edef646a95f (patch)
tree742a999ca1d5e42ba89c6f8d3a95b4634b004e81
parent2409249072798c936c6a1e5a9ca3d603d0114de7 (diff)
downloadmongo-e89833c5d2e2a563e3f6cfe1ecb30edef646a95f.tar.gz
--journal SERVER-2745 180
-rw-r--r--db/db.cpp11
1 files changed, 8 insertions, 3 deletions
diff --git a/db/db.cpp b/db/db.cpp
index 8d59115e0ba..548ac14197b 100644
--- a/db/db.cpp
+++ b/db/db.cpp
@@ -635,8 +635,8 @@ int main(int argc, char* argv[]) {
("dbpath", po::value<string>() , "directory for datafiles")
("diaglog", po::value<int>(), "0=off 1=W 2=R 3=both 7=W+some reads")
("directoryperdb", "each database will be stored in a separate directory")
- ("dur", "enable journaling")
- ("durOptions", po::value<int>(), "durability diagnostic options")
+ ("journal", "enable journaling")
+ ("journalOptions", po::value<int>(), "journal diagnostic options")
("ipv6", "enable IPv6 support (disabled by default)")
("jsonp","allow JSONP access via http (has security implications)")
("maxConns",po::value<int>(), "max number of simultaneous connections")
@@ -703,6 +703,8 @@ int main(int argc, char* argv[]) {
("appsrvpath", po::value<string>(), "root directory for the babble app server")
("nocursors", "diagnostic/debugging option that turns off cursors DO NOT USE IN PRODUCTION")
("nohints", "ignore query hints")
+ ("dur", "enable journaling") // deprecated version
+ ("durOptions", po::value<int>(), "durability diagnostic options") // deprecated version
;
@@ -799,12 +801,15 @@ int main(int argc, char* argv[]) {
if( params.count("nodur") ) {
cmdLine.dur = false;
}
- if( params.count("dur") ) {
+ if( params.count("dur") || params.count( "journal" ) ) {
cmdLine.dur = true;
}
if (params.count("durOptions")) {
cmdLine.durOptions = params["durOptions"].as<int>();
}
+ if (params.count("journalOptions")) {
+ cmdLine.durOptions = params["durOptions"].as<int>();
+ }
if (params.count("objcheck")) {
objcheck = true;
}