]> sourceware.org Git - lvm2.git/commit
lvmdbusd: Reduce unnecessary state refreshes
authorTony Asleson <tasleson@redhat.com>
Thu, 25 Feb 2016 20:57:12 +0000 (14:57 -0600)
committerTony Asleson <tasleson@redhat.com>
Thu, 25 Feb 2016 22:43:55 +0000 (16:43 -0600)
commitf1bc68beb4e493a9c1a52750e99d50f874ca89d9
treeaa09396c214cdc09c8eaa19bb24e085d3c176a17
parent045d086a570d327b00a4a06d139b387d059ade60
lvmdbusd: Reduce unnecessary state refreshes

When we use udev or have lvm call back into the dbus service when a
change occurs, even if that change originated from the dbus service
we end up refreshing the state of the system twice which is not
needed or wanted.  This change handles this case by removing any
pending refreshes in the worker queue if the state of the system
was just updated.

Signed-off-by: Tony Asleson <tasleson@redhat.com>
daemons/lvmdbusd/lvmdb.py
daemons/lvmdbusd/main.py
This page took 0.038232 seconds and 5 git commands to generate.