summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDwight <dwight@10gen.com>2011-02-28 16:55:38 -0500
committerEliot Horowitz <eliot@10gen.com>2011-03-01 10:57:27 -0500
commitcaaff8dfbeb2270079f5609002aa8e31020e47ef (patch)
treeecf63975a3e08df3cd8a084ef5d3cac29460cd35
parent22596b3c06db48660dd3eec96ca833ab584136ad (diff)
downloadmongo-caaff8dfbeb2270079f5609002aa8e31020e47ef.tar.gz
don't clean up journal files, or do much of anything, on an abruptQuit()
only doing this for --dur scenarios for now to keep the change small. later should probably change on a wider basis. 180?
-rw-r--r--db/db.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/db/db.cpp b/db/db.cpp
index e032fb6a709..2fb97142b7f 100644
--- a/db/db.cpp
+++ b/db/db.cpp
@@ -1099,6 +1099,11 @@ namespace mongo {
oss << "Backtrace:" << endl;
printStackTrace( oss );
rawOut( oss.str() );
+
+ if( cmdLine.dur ) {
+ ::exit(EXIT_ABRUPT);
+ }
+
dbexit( EXIT_ABRUPT );
}