Skip to content

Commit

Permalink
feat: add explicit fallthrough in the replication state transmission (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
mzygQAQ authored Mar 2, 2023
1 parent 3cea045 commit f3e391c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/cluster/replication.cc
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,7 @@ void ReplicationThread::CallbacksStateMachine::EvCallback(bufferevent *bev, void
switch (st) {
case CBState::NEXT:
++self->handler_idx_;
[[fallthrough]];
case CBState::PREV:
if (st == CBState::PREV) --self->handler_idx_;
if (self->getHandlerEventType(self->handler_idx_) == WRITE) {
Expand Down

0 comments on commit f3e391c

Please sign in to comment.