ctdb-tools/ctdb: Unlock records before closing tdb database
authorAmitay Isaacs <amitay@gmail.com>
Wed, 23 Apr 2014 01:44:20 +0000 (11:44 +1000)
committerMichael Adam <obnox@samba.org>
Wed, 23 Apr 2014 12:49:07 +0000 (14:49 +0200)
commit581ee2e4c32a1ddb77f4fccb6a5ade610998d47e
tree639c11398f8631440498b9b0fdee586b665b535b
parentdb0a1df25c868b4536f879d1191c4317065e6f06
ctdb-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>
ctdb/tools/ctdb.c