This will make observer crashes due to missed states (#648) much harder to
hit. Eventually the pgmap state trim problem will go away when the
monitor/paxos code is restructured (#647).
Signed-off-by: Sage Weil <sage@newdream.net>
mon->store->put_bl_sn(d, "pgmap_dump", paxosv);
}
+ unsigned max = 500;
if (mon->is_leader() &&
- paxosv > 10)
- paxos->trim_to(paxosv - 10);
+ paxosv > max)
+ paxos->trim_to(paxosv - max);
send_pg_creates();