]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/stats: initialize mx_last_updated in FSPerfStats 57441/head
authorJos Collin <jcollin@redhat.com>
Mon, 1 Apr 2024 04:55:43 +0000 (10:25 +0530)
committerJos Collin <jcollin@redhat.com>
Mon, 13 May 2024 10:26:27 +0000 (15:56 +0530)
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 <jcollin@redhat.com>
(cherry picked from commit b96ad6126110b292fca053fdfc6a956a6eb0f01e)

src/pybind/mgr/stats/fs/perf_stats.py

index 9b5fadc9141f3f8a0538864465ce62de99aa1028..7d5dacfd31d3459dc986af080938307fbb64cb3c 100644 (file)
@@ -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()