]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mon/OSDMonitor: fix rmsnap command
authorMatan Breizman <mbreizma@redhat.com>
Thu, 29 Feb 2024 14:46:31 +0000 (14:46 +0000)
committerMatan Breizman <mbreizma@redhat.com>
Thu, 29 Feb 2024 14:47:59 +0000 (14:47 +0000)
commitf19ad233025957964559410e6697aa8a2a024bc1
tree24547821879db66bcec446b5e8dc82bb57f5f91b
parentf912e9045ad2055311a189a0de2995c6b5cbd2ba
mon/OSDMonitor: fix rmsnap command

```
There are 2 ways to remove pool snaps, rados tool or mon command (ceph osd pool rmsnap).
It seems that the monitor command is not reporting the actual removal via new_removed_snaps which is later proceed in OSDMap::apply_incremental.
This will result in a clone object leakage since the snap id won't be marked as purged (and won't be trimmed).
```

Fixes: https://tracker.ceph.com/issues/64646
Signed-off-by: Matan Breizman <mbreizma@redhat.com>
src/mon/OSDMonitor.cc