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>
Wed, 23 Feb 2011 16:49:58 +0000 (17:49 +0100)
commitbbcfb7e468f5b3d0e71e95393675fdb55831aaca
tree6c8ae70c4e902bd56fb9ebc011f8a29c52e4062b
parentc74a75eb7b2f2de9da32b9c8d6fa9e3a89abedd7
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