summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSiyuan Zhou <siyuan.zhou@mongodb.com>2015-10-24 17:17:11 -0400
committerSiyuan Zhou <siyuan.zhou@mongodb.com>2015-10-26 11:24:29 -0400
commit649fab49c27ce39c1f06505c861c84cb4e493649 (patch)
treeb8e8c6659223eccb57fc10deab249eafd7c72e71
parentb9c5d9f97d63429c36cb9027b6fc1594b67373a9 (diff)
downloadmongo-649fab49c27ce39c1f06505c861c84cb4e493649.tar.gz
SERVER-21105 Fix potential segfault after downgrade to pv0.
-rw-r--r--src/mongo/db/repl/replication_coordinator_impl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/repl/replication_coordinator_impl.cpp b/src/mongo/db/repl/replication_coordinator_impl.cpp
index f68271defcd..9a807a25b74 100644
--- a/src/mongo/db/repl/replication_coordinator_impl.cpp
+++ b/src/mongo/db/repl/replication_coordinator_impl.cpp
@@ -3100,7 +3100,7 @@ StatusWith<ReplicationExecutor::CallbackHandle> ReplicationCoordinatorImpl::upda
if (!isV1ElectionProtocol()) {
// Do not update if not in V1 protocol.
- return Status::OK();
+ return ReplicationExecutor::CallbackHandle();
}
auto work =