recoverd: When updating flags on nodes, send updated flags and not old flags
authorAmitay Isaacs <amitay@gmail.com>
Wed, 26 Jun 2013 05:22:46 +0000 (15:22 +1000)
committerMichael Adam <obnox@samba.org>
Mon, 26 Aug 2013 11:35:50 +0000 (13:35 +0200)
commitadd9c07e7ab70d2307faaae77e69781be866c1a8
tree7f31851fc4e591b711eef5c43fd74f953dd4f363
parentc560b2fb00dd0e3caf7dd2ab794ffd12dd67f1a9
recoverd: When updating flags on nodes, send updated flags and not old flags

This was broken by commit a9a1156ea4e10483a4bf4265b8e9203f0af033aa.
Instead of a SRVID_SET_NODE_FLAGS message to recovery daemon, a control
was sent to the local daemon which in turn informed the recovery daemon.
And while doing this change old flags were sent via CONTROL_MODIFY_FLAGS.

Signed-off-by: Amitay Isaacs <amitay@gmail.com>
(cherry picked from commit 7eb2f89979360b6cc98ca9b17c48310277fa89fc)
server/ctdb_recoverd.c