ctdb-tools/ctdb: Detach databases only if all nodes disallow client access
authorAmitay Isaacs <amitay@gmail.com>
Tue, 15 Apr 2014 02:27:44 +0000 (12:27 +1000)
committerMichael Adam <obnox@samba.org>
Wed, 23 Apr 2014 12:49:07 +0000 (14:49 +0200)
commita1e1b81b9c0a267cd956ee0a170dd5d609d12891
tree38e4afcafe91999d4083dc8ce1f5db11efeb880f
parent1d4fb1b702b8bf4ffdff6fee626c280b174c5aee
ctdb-tools/ctdb: Detach databases only if all nodes disallow client access

This makes sure that AllowClientDBAttach is set to 0 before detaching any
databases.

If someone enables the tunable between checking of tunable and actual
detaching of databases, then they deserve what they get. :-)

Signed-off-by: Amitay Isaacs <amitay@gmail.com>
Reviewed-by: Michael Adam <obnox@samba.org>
ctdb/doc/ctdb.1.xml
ctdb/tools/ctdb.c