Skip to content

Commit

Permalink
fix format check
Browse files Browse the repository at this point in the history
  • Loading branch information
critical27 committed Apr 12, 2022
1 parent 0b2eb75 commit 362c198
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/kvstore/Part.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,7 @@ bool Part::preProcessLog(LogID logId, TermID termId, ClusterID clusterId, const
// persist the part learner info in case of storaged restarting
auto ret = engine_->updatePart(partId_, Peer(learner, Peer::Status::kLearner));
if (ret != nebula::cpp2::ErrorCode::SUCCEEDED) {
return false;
return false;
}
} else {
VLOG(1) << idStr_ << "Skip stale add learner " << learner << ", the part is opened at "
Expand Down Expand Up @@ -448,7 +448,7 @@ bool Part::preProcessLog(LogID logId, TermID termId, ClusterID clusterId, const
addPeer(peer);
auto ret = engine_->updatePart(partId_, Peer(peer, Peer::Status::kPromotedPeer));
if (ret != nebula::cpp2::ErrorCode::SUCCEEDED) {
return false;
return false;
}
} else {
VLOG(1) << idStr_ << "Skip stale add peer " << peer << ", the part is opened at "
Expand All @@ -465,7 +465,7 @@ bool Part::preProcessLog(LogID logId, TermID termId, ClusterID clusterId, const
// remove peer in the persist info
auto ret = engine_->updatePart(partId_, Peer(peer, Peer::Status::kDeleted));
if (ret != nebula::cpp2::ErrorCode::SUCCEEDED) {
return false;
return false;
}
} else {
VLOG(1) << idStr_ << "Skip stale remove peer " << peer << ", the part is opened at "
Expand Down

0 comments on commit 362c198

Please sign in to comment.