xenstore: fix add_change_node()
authorJuergen Gross <jgross@suse.com>
Thu, 27 Oct 2016 09:55:52 +0000 (11:55 +0200)
committerWei Liu <wei.liu2@citrix.com>
Mon, 31 Oct 2016 10:18:02 +0000 (10:18 +0000)
commitdc6d67804fbf043e53f8f7805c7a39b279a47f5a
treed323b19484ab9d3ef730d01b3c2b90a996f64a6b
parenta62511bf14971ff581212decbbf57fc11b967840
xenstore: fix add_change_node()

add_change_node() in xenstored is used to add a modified node to the
list of changed nodes of one transaction. It is being called with the
recurse parameter set to true when removing a node in order to get
watches for children of the node fired at transaction end, too.

If, however, the node to be deleted had been modified in the same
transaction the recurse parameter of add_change_node() is lost as
an entry already in the list of the changed nodes won't be entered
again.

Signed-off-by: Juergen Gross <jgross@suse.com>
Reviewed-by: Wei Liu <wei.liu2@citrix.com>
Release-acked-by: Wei Liu <wei.liu2@citrix.com>
tools/xenstore/xenstored_transaction.c