summaryrefslogtreecommitdiff
path: root/dbtests
diff options
context:
space:
mode:
authorgregs <greg@10gen.com>2011-08-05 15:31:34 -0400
committergregs <greg@10gen.com>2011-08-05 15:31:34 -0400
commit4e25a6d588c4eaa8495066e292e5908f05eeb926 (patch)
treeb09eebdd57f1ff584fac3b7463557e15fe9b5679 /dbtests
parenta19bd10c50c12a03fc894c8b3d19bc75a6826121 (diff)
downloadmongo-4e25a6d588c4eaa8495066e292e5908f05eeb926.tar.gz
allow test not to preallocate journal files
Diffstat (limited to 'dbtests')
-rw-r--r--dbtests/framework.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/dbtests/framework.cpp b/dbtests/framework.cpp
index 99fcad51d97..95ed8b33668 100644
--- a/dbtests/framework.cpp
+++ b/dbtests/framework.cpp
@@ -209,6 +209,7 @@ namespace mongo {
hidden_options.add_options()
("suites", po::value< vector<string> >(), "test suites to run")
+ ("nopreallocj", "disable journal prealloc")
;
positional_options.add("suites", -1);
@@ -247,6 +248,10 @@ namespace mongo {
cmdLine.dur = true;
}
+ if( params.count("nopreallocj") ) {
+ cmdLine.preallocj = false;
+ }
+
if (params.count("debug") || params.count("verbose") ) {
logLevel = 1;
}