]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mon: Modified an if statement to check if there were maps to trim 63890/head
authorshreya subramanian <shsubramanian@g.hmc.edu>
Wed, 11 Jun 2025 21:54:12 +0000 (21:54 +0000)
committershreya subramanian <Shreya.Subramanian@ibm.com>
Thu, 12 Jun 2025 18:40:05 +0000 (18:40 +0000)
commit3d98e57287201e40bc7125efc9c3c504f468265f
tree0444c57ae917a183823edf40bf54bf02dbd44be9
parent458d8862ee3f72c3bab9d443c6678c3ceef9c73a
mon: Modified  an if statement to check if there were maps to trim

When to_remove is 0 and first commited is 0 the maybe trim function
in paxos service.cc calls the trim function with argument to and from
having the  same value, which causes the assert statement in the trim
function to fail and the monitor to crash. Modifying the if statement
trim_to <= first commited checks this condition before calling the trim
function and returns if true

Fixes: https://tracker.ceph.com/issues/71610
Signed-off-by: Shreya Subramanian <Shreya.Subramanian@ibm.com>
src/mon/PaxosService.cc