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>
Wed, 23 Feb 2011 16:49:58 +0000 (17:49 +0100)
commit903a0904617cccb852aa07bd4d765e1407a3c883
treef6b45581eb61cfc283c3350fba25e95c6ed9d775
parenta1cb6cff0f8196ccbba36cd9342cf2e36c5c38a8
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