1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

daemon: correctly end a running trans3_commit if the client disconnects.

(This used to be ctdb commit 9e0898db6df52d9bc799dd87bfea8c72d5f70ba0)
This commit is contained in:
Michael Adam 2011-02-23 17:37:42 +01:00
parent 0b3d8d28f6
commit ee44c23cd5

View File

@ -225,7 +225,16 @@ static int ctdb_client_destructor(struct ctdb_client *client)
DEBUG(DEBUG_ERR, (__location__ " client exit while transaction "
"commit active. Forcing recovery.\n"));
client->ctdb->recovery_mode = CTDB_RECOVERY_ACTIVE;
/* legacy trans2 transaction state: */
ctdb_db->transaction_active = false;
/*
* trans3 transaction state:
*
* The destructor sets the pointer to NULL.
*/
talloc_free(ctdb_db->persistent_state);
}
return 0;