From: Jos Collin Date: Mon, 1 Apr 2024 04:55:43 +0000 (+0530) Subject: mgr/stats: initialize mx_last_updated in FSPerfStats X-Git-Tag: v19.1.1~263^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=83d53ca0d857dda20cc55b220cc521d755d28951;p=ceph.git mgr/stats: initialize mx_last_updated in FSPerfStats Fixes the error in teuthology log: AttributeError: 'FSPerfStats' object has no attribute 'mx_last_updated' Fixes: https://tracker.ceph.com/issues/65073 Signed-off-by: Jos Collin (cherry picked from commit b96ad6126110b292fca053fdfc6a956a6eb0f01e) --- diff --git a/src/pybind/mgr/stats/fs/perf_stats.py b/src/pybind/mgr/stats/fs/perf_stats.py index 9b5fadc9141f3..7d5dacfd31d34 100644 --- a/src/pybind/mgr/stats/fs/perf_stats.py +++ b/src/pybind/mgr/stats/fs/perf_stats.py @@ -141,6 +141,7 @@ class FSPerfStats(object): self.module = module self.log = module.log self.prev_rank0_gid = None + self.mx_last_updated = 0.0 # report processor thread self.report_processor = Thread(target=self.run) self.report_processor.start()