]> git-server-git.apps.pok.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>
Sun, 24 Mar 2024 12:05:30 +0000 (12:05 +0000)
commit6f0f2b6ad1daa44252c32097f2d36dba0ddf4ea9
tree805910c8a285557b93804d3646461827901148bf
parentcfc058722e0074d5d2557d33870dc00dfb85d52d
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>
(cherry picked from commit f19ad233025957964559410e6697aa8a2a024bc1)
src/mon/OSDMonitor.cc