ctdb-scripts: Simplify 01.reclock.script
commitea7708d8c7fa674111ccea58b3cd0757765c702a
authorMartin Schwenke <martin@meltin.net>
Mon, 8 Jul 2019 06:35:57 +0000 (8 16:35 +1000)
committerMartin Schwenke <martins@samba.org>
Fri, 26 Jul 2019 04:52:04 +0000 (26 04:52 +0000)
treef756883b2fd08910fbb8e932a60bdff4682db04f
parent38898775e6f1fb25171c920f2d8bcce24ec51476
ctdb-scripts: Simplify 01.reclock.script

The "init" event is only run once so don't bother caching the
configured value of the recovery lock.  Add some extra error checking.

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
Autobuild-User(master): Martin Schwenke <martins@samba.org>
Autobuild-Date(master): Fri Jul 26 04:52:04 UTC 2019 on sn-devel-184
ctdb/config/events/legacy/01.reclock.script