summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTess Avitabile <tess.avitabile@mongodb.com>2016-10-28 19:22:02 -0400
committerTess Avitabile <tess.avitabile@mongodb.com>2016-10-28 19:22:02 -0400
commitdd3367849b2f550e57c69003f3eb70679a1ba3c8 (patch)
tree7c93c1ae5988949f253ef4598848458cc09e77dc
parente923952dd2c492ab19c34bfe094da6b855d0f99d (diff)
downloadmongo-dd3367849b2f550e57c69003f3eb70679a1ba3c8.tar.gz
Revert "SERVER-26712 fix variable naming in checkDBHashesForReplSet"
This reverts commit 7154b9f7c81fdda492d2536e8ef7c434356d8ac6.
-rw-r--r--src/mongo/shell/replsettest.js16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/mongo/shell/replsettest.js b/src/mongo/shell/replsettest.js
index c5b0af553df..8f0e1cb6656 100644
--- a/src/mongo/shell/replsettest.js
+++ b/src/mongo/shell/replsettest.js
@@ -1060,7 +1060,7 @@ var ReplSetTest = function(opts) {
assert.commandWorked(primaryDBHash);
try {
- var primaryCollInfos = primary.getDB(dbName).getCollectionInfos();
+ var primaryCollInfo = primary.getDB(dbName).getCollectionInfos();
} catch (e) {
if (jsTest.options().skipValidationOnInvalidViewDefinitions) {
assert.commandFailedWithCode(e, ErrorCodes.InvalidViewDefinition);
@@ -1112,15 +1112,15 @@ var ReplSetTest = function(opts) {
// Check that collection information is consistent on the primary and
// secondaries.
- var secondaryCollInfos = secondary.getDB(dbName).getCollectionInfos();
- secondaryCollInfos.forEach(secondaryInfo => {
+ var secondaryCollInfo = secondary.getDB(dbName).getCollectionInfos();
+ secondaryCollInfo.forEach(secondaryInfo => {
// SERVER-26712 Temporarily avoid validating _id index version.
- if (secondaryInfo.hasOwnProperty('idIndex'))
- delete secondaryInfo.idIndex.v;
- primaryCollInfos.forEach(primaryInfo => {
+ if (secondaryCollInfo.hasOwnProperty('idIndex'))
+ delete secondaryCollInfo.idIndex.v;
+ primaryCollInfo.forEach(primaryInfo => {
// SERVER-26712 Temporarily avoid validating _id index version.
- if (primaryInfo.hasOwnProperty('idIndex'))
- delete primaryInfo.idIndex.v;
+ if (primaryCollInfo.hasOwnProperty('idIndex'))
+ delete primaryCollInfo.idIndex.v;
if (secondaryInfo.name === primaryInfo.name) {
if (!bsonBinaryEqual(secondaryInfo, primaryInfo)) {
print(msgPrefix +