summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEliot Horowitz <eliot@10gen.com>2011-02-18 21:04:21 -0500
committerEliot Horowitz <eliot@10gen.com>2011-02-18 21:04:21 -0500
commit7e13092c2f41ce844c3671cd39cf96afd8e62a90 (patch)
treec371160f10a05f0d99e613d2b9f2feebc90fe634
parent9e73768cebcf84ac89ca91d57bc731612ee286ff (diff)
downloadmongo-7e13092c2f41ce844c3671cd39cf96afd8e62a90.tar.gz
wait for group commit
-rwxr-xr-xjstests/dur/manyRestart.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/jstests/dur/manyRestart.js b/jstests/dur/manyRestart.js
index 956fd034224..04e431854e3 100755
--- a/jstests/dur/manyRestart.js
+++ b/jstests/dur/manyRestart.js
@@ -130,6 +130,9 @@ for (var i = 0; i < 3; ++i) {
// durable version
log("restarting 30001");
conn = startMongodNoReset("--port", 30001, "--dbpath", path2, "--dur", "--smallfiles", "--durOptions", 8);
+
+ // wait for group commit.
+ printjson(conn.getDB('admin').runCommand({getlasterror:1, fsync:1}));
verify();