]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/snap_schedule: correctly fetch mds_max_snaps_per_dir from mds
authorMilind Changire <mchangir@redhat.com>
Fri, 10 May 2024 09:04:43 +0000 (14:34 +0530)
committerMilind Changire <mchangir@redhat.com>
Thu, 5 Sep 2024 06:29:34 +0000 (11:59 +0530)
Fixes: https://tracker.ceph.com/issues/65895
Signed-off-by: Milind Changire <mchangir@redhat.com>
src/pybind/mgr/snap_schedule/fs/schedule_client.py

index 1c46ccc693321dca0c7cb7272abf7c6684b9bd4c..b58f20f127534d56b81a111b82a60d18342eb847 100644 (file)
@@ -361,7 +361,7 @@ class SnapSchedClient(CephfsClient):
             path = sched.path
             prune_candidates = set()
             time = datetime.now(timezone.utc)
-            mds_max_snaps_per_dir = self.mgr.get_ceph_option('mds_max_snaps_per_dir')
+            mds_max_snaps_per_dir = self.mgr.get_foreign_ceph_option('mds', 'mds_max_snaps_per_dir')
             with open_filesystem(self, sched.fs) as fs_handle:
                 snap_dir = self.mgr.rados.conf_get('client_snapdir')
                 with fs_handle.opendir(f'{path}/{snap_dir}') as d_handle: