]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
snap-schedule: don't prune all on empty retention 36974/head
authorJan Fajerski <jfajerski@suse.com>
Thu, 3 Sep 2020 10:46:38 +0000 (12:46 +0200)
committerJan Fajerski <jfajerski@suse.com>
Thu, 3 Sep 2020 10:52:58 +0000 (12:52 +0200)
commit0867f0994ab794962aefabe5fd031e0c95adf44c
treeacb869822349cbf37500d75f00b8732cd85ca9f8
parenta8bf3e9b2f804d11600d412dae0b9493a3df61c8
snap-schedule: don't prune all on empty retention

This commit ensures that an empty retention doesn't prune all snapshots.
It will however add a limit of 50 snapshots per directory (as defined by
MAX_SNAPS_PER_PATH).

Fixes: https://tracker.ceph.com/issues/47268
Signed-off-by: Jan Fajerski <jfajerski@suse.com>
src/pybind/mgr/snap_schedule/fs/schedule_client.py
src/pybind/mgr/snap_schedule/tests/fs/test_schedule_client.py [new file with mode: 0644]