0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-12-01 09:32:32 +01:00

replset2 was defining a variable twice -might have been harmless, but fixed

This commit is contained in:
Dwight 2010-08-26 10:28:35 -04:00
parent fb72d4b0e3
commit dd95851093

View File

@ -90,11 +90,10 @@ doTest = function (signal) {
printjson(m1);
assert(m1['n'] == 1, "replset2.js Failed to save to master");
var s0 = slaves[0].getDB(testDB).foo.findOne({ n: 1 });
s0 = slaves[0].getDB(testDB).foo.findOne({ n: 1 });
assert(s0['n'] == 1, "replset2.js Failed to replicate to slave 0");
var s1 = slaves[1].getDB(testDB).foo.findOne({ n: 1 });
s1 = slaves[1].getDB(testDB).foo.findOne({ n: 1 });
assert(s1['n'] == 1, "replset2.js Failed to replicate to slave 1");
// Test getlasterror with large insert