add a property in pg_update that gets the
(current) OSDMap when the event is
created, and compare PG epoch with
OSDMap epoch. Also made some changes
on the spacing of things.
(cherry picked from commit
f618e56c93ad82a20ab844fddc3d2ded42f2a48e)
Signed-off-by: Kamoltat <ksirivad@redhat.com>
# The PG is gone! Probably a pool was deleted. Drop it.
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(latest_osd_map_epoch):
+ # Only checks the state of each PGs when it's epoch >= the OSDMap's epoch
+ if int(info['reported_epoch']) < int(start_epoch):
continue
state = info['state']