Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Display "lag" of command "info replication" may overflow.
  • Loading branch information
whoiami authored May 26, 2020
1 parent 8c45569 commit a45a51a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pika_server.cc
Original file line number Diff line number Diff line change
Expand Up @@ -801,8 +801,8 @@ int32_t PikaServer::GetSlaveListString(std::string& slave_list_str) {
continue;
} else {
uint64_t lag =
(master_boffset.filenum - sent_slave_boffset.filenum) * g_pika_conf->binlog_file_size()
+ (master_boffset.offset - sent_slave_boffset.offset);
(uint64_t)(master_boffset.filenum - sent_slave_boffset.filenum) * g_pika_conf->binlog_file_size()
+ master_boffset.offset - sent_slave_boffset.offset;
tmp_stream << "(" << partition->PartitionName() << ":" << lag << ")";
}
} else {
Expand Down

0 comments on commit a45a51a

Please sign in to comment.