Details
-
Bug
-
Resolution: Fixed
-
Major - P3
-
3.5.9
-
None
-
Fully Compatible
-
ALL
-
TIG 2017-12-04
Description
for (let dbName of dbNames) { |
cmds.then("DEBUG: validating " + dbName, function(conn) { |
if (!validateCollections(conn.getDB(dbName), {full: true})) { |
return {shouldStop: true, reason: "collection validation failed"}; |
}
|
});
|
}
|
The function above ends up using the last dbName for each run of the loop, rather than rebinding dbName for each value.
Attachments
Issue Links
- is related to
-
SERVER-28590 Call validate before any mongod is shut down in our tests
-
- Closed
-