Skip to content

Commit

Permalink
Matching format specifies type to argument type to eliminate compile …
Browse files Browse the repository at this point in the history
…warnings
  • Loading branch information
Zexi Liu committed Jul 18, 2024
1 parent 35083c6 commit e7ec522
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/raft_server.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -1151,7 +1151,7 @@ void raft_server::check_leadership_transfer() {
if (peer_elem->get_matched_idx() + params->stale_log_gap_ <
cur_commit_idx) {
// This peer is lagging behind.
p_tr("peer %d is lagging behind, %lu < %lu",
p_tr("peer %d is lagging behind, %llu < %llu",
s_conf.get_id(), peer_elem->get_matched_idx(),
cur_commit_idx);
return;
Expand All @@ -1160,7 +1160,7 @@ void raft_server::check_leadership_transfer() {
uint64_t last_resp_ms = peer_elem->get_resp_timer_us() / 1000;
if (last_resp_ms > election_lower) {
// This replica is not responding.
p_tr("peer %d is not responding, %lu ms ago",
p_tr("peer %d is not responding, %llu ms ago",
s_conf.get_id(), last_resp_ms);
return;
}
Expand Down

0 comments on commit e7ec522

Please sign in to comment.