tools/ctdb: Unlock records before closing tdb database
authorAmitay Isaacs <amitay@gmail.com>
Wed, 23 Apr 2014 01:44:20 +0000 (11:44 +1000)
committerAmitay Isaacs <amitay@gmail.com>
Wed, 23 Apr 2014 16:50:59 +0000 (02:50 +1000)
commita5cc53fd4b02a056ac51d27d35b453de9d778477
tree4c7725596f8d462edec2e996dd0c87adbef0a82b
parente23cce03f5eccacd59bf0f2f94041a199115a98a
tools/ctdb: Unlock records before closing tdb database

Now freeing ctdb_db context will close the tdb database.  So make sure
all the locks are released (by freeing record handles or memory context
from which record handles are allocated) before freeing ctdb_db context.

Signed-off-by: Amitay Isaacs <amitay@gmail.com>
Reviewed-by: Michael Adam <obnox@samba.org>
(Imported from commit 581ee2e4c32a1ddb77f4fccb6a5ade610998d47e)
tools/ctdb.c