summaryrefslogtreecommitdiff
path: root/src/mongo/db/repl/sync_source_feedback.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/repl/sync_source_feedback.cpp')
-rw-r--r--src/mongo/db/repl/sync_source_feedback.cpp4
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();