Readrecordlock changes:
authorRonnie Sahlberg <ronniesahlberg@gmail.com>
Fri, 4 Jun 2010 04:47:06 +0000 (14:47 +1000)
committerRonnie Sahlberg <ronniesahlberg@gmail.com>
Fri, 4 Jun 2010 04:47:06 +0000 (14:47 +1000)
commit87dc18a3a051da04685f14529c53c428d37c2912
tree3fafc8dde8f210953fad6711bf991f68a26419b4
parent0ba458a91ba510215a9c8770286a68e19911515f
Readrecordlock changes:

Make the use of ctdb_release_lock() mandatory from the callback.

Split ctdb_release_lock() in two, release the tdb lock in the
ctdb_release_lock() function and move the freeing of the lock structure to ctdb_free_lock() which is private to libctdb.

When the callback returns, verify that the callback has actually released the lock and warn (FIXME) if not.

Update ctdb_writerecord to warn and fail (FIXME) if writing while the lock is not held.
libctdb/ctdb.c