summaryrefslogtreecommitdiff
path: root/jstests/dur
diff options
context:
space:
mode:
authordwight <dwight@10gen.com>2011-02-05 16:40:27 -0500
committerdwight <dwight@10gen.com>2011-02-05 16:40:27 -0500
commit3a1db008a7da4e2ce4edb117570c9dfea11d6d70 (patch)
treea9546b5c4ef2641ce73994ee2e88e1df5e5e6b46 /jstests/dur
parente199733c787ab52b420516585ebf3440a1f821f0 (diff)
downloadmongo-3a1db008a7da4e2ce4edb117570c9dfea11d6d70.tar.gz
adjust md5.js to pass with the file format change
Diffstat (limited to 'jstests/dur')
-rw-r--r--jstests/dur/md5.js11
1 files changed, 6 insertions, 5 deletions
diff --git a/jstests/dur/md5.js b/jstests/dur/md5.js
index 3ea1a15f6af..107476e9704 100644
--- a/jstests/dur/md5.js
+++ b/jstests/dur/md5.js
@@ -68,15 +68,16 @@ stopMongod(30001, /*signal*/9);
// Bit flip the first byte of the md5sum contained within the opcode footer.
// This ensures we get an md5 exception instead of some other type of exception.
var file = path + "/journal/j._0";
-//run("cp", file, "/tmp/before");
-//fuzzFile(file, 39755);
+
+// if test fails, uncomment these "cp" lines to debug:
+// run("cp", file, "/tmp/before");
// journal header is 8192
-// jsectheader is 12
+// jsectheader is 20
// so a little beyond that
-fuzzFile(file, 8214);
+fuzzFile(file, 8214+8);
-//run("cp", file, "/tmp/after");
+// run("cp", file, "/tmp/after");
log("run mongod again recovery should fail");