]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
snap-schedule: count retained snapshots per retention policy
authorJan Fajerski <jfajersk@redhat.com>
Mon, 23 Aug 2021 13:15:21 +0000 (15:15 +0200)
committerLaura Paduano <lpaduano@suse.com>
Wed, 6 Oct 2021 14:13:28 +0000 (16:13 +0200)
commita04f29767235caeb0d05dd861aae638695225863
tree27dcc156fd7ab3819a8af5c4f9799921ae386fb0
parent5f2dd55ed8843e09f1b4404dd97cbcd0ee86278e
snap-schedule: count retained snapshots per retention policy

Before this commit the length of the already-retained snapshots
terminated the loop. This fails when muliple retention policies are set.

Fixes: https://tracker.ceph.com/issues/52388
Signed-off-by: Jan Fajerski <jfajersk@redhat.com>
(cherry picked from commit 853d97bbae0c4082b7d6fda7e191df7c246db10f)

 Conflicts:
src/pybind/mgr/snap_schedule/fs/schedule_client.py
- resolved conflict between 89-91
src/pybind/mgr/snap_schedule/fs/schedule_client.py