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:35:25 +0000 (10:35 +0100)
commite886ff24f4e3e250944289db95916b948893d26c
treee2d7b1a0e7707e0334858565cf90d8ff1585f262
parentf416e76838fe2adf629d4356d1cc87054b1af164
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