mirror of
https://github.com/ceph/ceph
synced 2025-01-03 17:42:36 +00:00
mon: fix signed/unsigned compile warning
This commit is contained in:
parent
4bcba121ac
commit
be7d84b2b4
@ -170,7 +170,7 @@ bool LogMonitor::update_from_paxos()
|
||||
|
||||
|
||||
// trim
|
||||
int max = 500;
|
||||
unsigned max = 500;
|
||||
if (mon->is_leader() && paxosv > max)
|
||||
paxos->trim_to(paxosv - max);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user