]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
pybind/mgr/progress/module.py: no need to cast reported_epoch and _start_epoch
authorNeha Ojha <nojha@redhat.com>
Wed, 30 Jun 2021 19:38:15 +0000 (19:38 +0000)
committerKamoltat <ksirivad@redhat.com>
Thu, 30 Sep 2021 13:20:56 +0000 (13:20 +0000)
reported_epoch is an int, see 22128e3de697f3fdf66faf3fe3b701a3a599968f
and _start_epoch is also an int, see type annotations in
2af2afa5e9191115bb6f0b36194830ffb91938bf

Signed-off-by: Neha Ojha <nojha@redhat.com>
(cherry picked from commit da268faed8e7a3eacb68b1c92855dc3a43225961)
Signed-off-by: Kamoltat <ksirivad@redhat.com>
src/pybind/mgr/progress/module.py

index 812c16fdb0c446223bc87fb3145d432ea0f29b09..3aab7514f3a2558ecd31592cd09627844a00b0e7 100644 (file)
@@ -345,7 +345,7 @@ class PgRecoveryEvent(Event):
                 complete.add(pg)
                 continue
             # Only checks the state of each PGs when it's epoch >= the OSDMap's epoch
-            if int(info['reported_epoch']) < int(self._start_epoch):
+            if info['reported_epoch'] < self._start_epoch:
                 continue
 
             state = info['state']