summaryrefslogtreecommitdiff
path: root/src/mongo/db/repl/sync_source_feedback.cpp
diff options
context:
space:
mode:
authorJudah Schvimer <judah@mongodb.com>2017-01-23 14:35:51 -0500
committerJudah Schvimer <judah@mongodb.com>2017-01-23 14:35:51 -0500
commit52f8f4d7639219f12bf696f0538bc13af04a3708 (patch)
treec72bea4c9ca083472e2edfbe611b8a69355c12cc /src/mongo/db/repl/sync_source_feedback.cpp
parent84ca21e55efe1bdf97380caaa10079b613f00cac (diff)
downloadmongo-52f8f4d7639219f12bf696f0538bc13af04a3708.tar.gz
SERVER-27783 Removed unnecessary lock in SyncSourceFeedback
Diffstat (limited to 'src/mongo/db/repl/sync_source_feedback.cpp')
-rw-r--r--src/mongo/db/repl/sync_source_feedback.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/mongo/db/repl/sync_source_feedback.cpp b/src/mongo/db/repl/sync_source_feedback.cpp
index c384fe6cf9b..0778c407948 100644
--- a/src/mongo/db/repl/sync_source_feedback.cpp
+++ b/src/mongo/db/repl/sync_source_feedback.cpp
@@ -85,7 +85,6 @@ Reporter::PrepareReplSetUpdatePositionCommandFn makePrepareReplSetUpdatePosition
}
}
- stdx::lock_guard<stdx::mutex> lock(mtx);
auto replCoord = repl::ReplicationCoordinator::get(txn);
if (replCoord->getMemberState().primary()) {
// Primary has no one to send updates to.