Skip to content
This repository has been archived by the owner on Aug 18, 2020. It is now read-only.

Commit

Permalink
remove check for slave number since the addslave an removeslave function
Browse files Browse the repository at this point in the history
  • Loading branch information
CatKang committed Dec 21, 2016
1 parent 3b3d4cc commit aa2cc4c
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/node/zp_data_partition.cc
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,6 @@ ZPMeta::PState Partition::UpdateState(ZPMeta::PState state) {
}

void Partition::Update(ZPMeta::PState state, const Node &master, const std::vector<Node> &slaves) {
assert(slaves.size() == kReplicaNum - 1);
slash::RWLock l(&state_rw_, true);

// Check Status first
Expand Down

0 comments on commit aa2cc4c

Please sign in to comment.