use this instead: if (last_event_checkpoint_marker...
# general
p
use this instead: if (last_event_checkpoint_marker < static_cast<int>(last_eid_ / EVENTS_CHECKPOINT)) {