persistent: allocate the persistent state in the ctdb_db struct in trans3_commit
authorMichael Adam <obnox@samba.org>
Tue, 22 Feb 2011 23:01:13 +0000 (00:01 +0100)
committerMichael Adam <obnox@samba.org>
Thu, 24 Feb 2011 09:32:00 +0000 (10:32 +0100)
commitaf19cb7c0fdfbee813e73943f9436f1d244626c1
tree5a1240c9a3ee2e6fb377b2c2a13274dd4d5174a2
parentb0d39618b88f0c4938dd3df669bd08e871cc0f05
persistent: allocate the persistent state in the ctdb_db struct in trans3_commit

Make sure that ctdb_db->persistent_state is correctly NULL-ed when
the state is freed. This way, we can use ctdb_db->persistent_state
as an indication for whether a transaction commit is currently
running.
server/ctdb_persistent.c