diff options
author | Siyuan Zhou <siyuan.zhou@mongodb.com> | 2015-08-18 15:37:24 -0400 |
---|---|---|
committer | Siyuan Zhou <siyuan.zhou@mongodb.com> | 2015-08-18 17:34:35 -0400 |
commit | 9e4eab4f0c8b47ac0dbb22ccadaf2e2509820300 (patch) | |
tree | 55c7ec0878461f0d270ea54526619612f485b827 /src/mongo/db/repl | |
parent | 8494af88fa614eced7005af21234e1019539f0fc (diff) | |
download | mongo-9e4eab4f0c8b47ac0dbb22ccadaf2e2509820300.tar.gz |
SERVER-20013 Don't blacklist the upstream if its config version is greater
Diffstat (limited to 'src/mongo/db/repl')
-rw-r--r-- | src/mongo/db/repl/sync_source_feedback.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/repl/sync_source_feedback.cpp b/src/mongo/db/repl/sync_source_feedback.cpp index 316d6efb8eb..89c3fad4d5b 100644 --- a/src/mongo/db/repl/sync_source_feedback.cpp +++ b/src/mongo/db/repl/sync_source_feedback.cpp @@ -137,8 +137,8 @@ Status SyncSourceFeedback::updateUpstream(OperationContext* txn) { log() << "SyncSourceFeedback error sending update, response: " << res.toString() << endl; // blacklist sync target for .5 seconds and find a new one, unless we were rejected due // to the syncsource having a newer config - if (status != ErrorCodes::InvalidReplicaSetConfig || res["cfgver"].eoo() || - res["cfgver"].numberLong() < replCoord->getConfig().getConfigVersion()) { + if (status != ErrorCodes::InvalidReplicaSetConfig || res["configVersion"].eoo() || + res["configVersion"].numberLong() < replCoord->getConfig().getConfigVersion()) { replCoord->blacklistSyncSource(_syncTarget, Date_t::now() + Milliseconds(500)); BackgroundSync::get()->clearSyncTarget(); _resetConnection(); |