diff options
author | Siyuan Zhou <siyuan.zhou@mongodb.com> | 2015-10-24 17:17:11 -0400 |
---|---|---|
committer | Siyuan Zhou <siyuan.zhou@mongodb.com> | 2015-10-26 11:24:29 -0400 |
commit | 649fab49c27ce39c1f06505c861c84cb4e493649 (patch) | |
tree | b8e8c6659223eccb57fc10deab249eafd7c72e71 | |
parent | b9c5d9f97d63429c36cb9027b6fc1594b67373a9 (diff) | |
download | mongo-649fab49c27ce39c1f06505c861c84cb4e493649.tar.gz |
SERVER-21105 Fix potential segfault after downgrade to pv0.
-rw-r--r-- | src/mongo/db/repl/replication_coordinator_impl.cpp | 2 |
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 = |