persistent: add a client context to the persistent_stat and track the db_id
authorMichael Adam <obnox@samba.org>
Wed, 23 Feb 2011 16:35:27 +0000 (17:35 +0100)
committerMichael Adam <obnox@samba.org>
Thu, 24 Feb 2011 09:32:00 +0000 (10:32 +0100)
commit8483dcfcbb0b6700ebec51ac0f6ba5c09e24007b
treef89c94b73b43e7c9c940d3dbfbe0a1c50c6c49fe
parent4c01d6738532696cb83fc2074849ca771029e960
persistent: add a client context to the persistent_stat and track the db_id

The db_id is tracked in the client context as an indication that a
transaction commit is in progress. This is cleared in the persistent_state
talloc destructor.

This is in order to properly treat running trans3_commits if the client
disconnects.
server/ctdb_persistent.c