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:
parent
0b3d8d28f6
commit
ee44c23cd5
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user