MCPcopy Create free account
hub / github.com/apache/kvrocks / TimerCB

Method TimerCB

src/commands/cmd_replication.cc:443–449  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

441 }
442
443 void TimerCB(int, int16_t) {
444 timer_.reset();
445 // Wake up the connection upon timeout.
446 // WakeupWaitConnection will hold the lock of the connection during the execution,
447 // holding the lock is necessary to avoid race condition that timeout and replication ack happen at the same time.
448 srv_->WakeupWaitConnection(conn_, target_seq_);
449 }
450
451 void OnEvent(bufferevent *bev, int16_t events) {
452 if (events & (BEV_EVENT_EOF | BEV_EVENT_ERROR)) {

Callers

nothing calls this directly

Calls 1

WakeupWaitConnectionMethod · 0.80

Tested by

no test coverage detected