daemon: Handle out-of-memory when setting recovery lock file
authorMartin Schwenke <martin@meltin.net>
Tue, 9 Dec 2014 02:40:23 +0000 (13:40 +1100)
committerAmitay Isaacs <amitay@gmail.com>
Fri, 6 Feb 2015 02:38:15 +0000 (13:38 +1100)
commit0ddf428dc9c9e10a8140844f65a1a087ff01c79c
treee6363e2c2246cedb24b1c0d6a351117c58f1d5e1
parent05c6c86eea80b54e0e4bea7d2d4169ab5f1ef564
daemon: Handle out-of-memory when setting recovery lock file

Log a message when the reclock file actually changes and avoid a
memory allocation when it doesn't change.

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Michael Adam <obnox@samba.org>
(Imported from commit 6f1ac7af0f87d85402d708231e45a69713bba026)
server/ctdb_control.c