]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/stats: initialize mx_last_updated in FSPerfStats 57442/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:28:21 +0000 (15:58 +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 596b3bc08d1a8137eb68aecd1c1818137860086c..baca811c08326e452ce26939cb0abb014fc3d4cd 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()