]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/rbd_support: print out watch.get_id()
authorKefu Chai <kchai@redhat.com>
Fri, 5 Feb 2021 11:09:06 +0000 (19:09 +0800)
committerKefu Chai <kchai@redhat.com>
Thu, 18 Feb 2021 14:46:51 +0000 (22:46 +0800)
watch_id is not defined.

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/pybind/mgr/rbd_support/mirror_snapshot_schedule.py

index cad46898a5bafded21b3d447164b89aae43ad48f..ad30ab3c5ed958550f5fd7228bf8582652141510 100644 (file)
@@ -139,7 +139,7 @@ class Watchers:
                     continue
 
             self.log.debug("{}/{}/{} watcher {} stale".format(
-                pool_id, namespace, MIRRORING_OID, watch_id))
+                pool_id, namespace, MIRRORING_OID, watch.get_id()))
 
             self.unregister(pool_id, namespace)