mirror of
https://github.com/samba-team/samba.git
synced 2025-01-26 10:04:02 +03:00
persistent_callback: ignore the update-recordreturn code of remote node in recovery
If a recovery was started, then all further processing of the update_record controls sent by the trans3_commit control is disabled. The recovery should trigger sending the reply for the update record control when finished. (This used to be ctdb commit 12cf0619255b12230843cd8bb49cbfdea376ca2f)
This commit is contained in:
parent
92f86534ac
commit
c9df23ae1d
@ -53,6 +53,12 @@ static void ctdb_persistent_callback(struct ctdb_context *ctdb,
|
|||||||
struct ctdb_persistent_state *state = talloc_get_type(private_data,
|
struct ctdb_persistent_state *state = talloc_get_type(private_data,
|
||||||
struct ctdb_persistent_state);
|
struct ctdb_persistent_state);
|
||||||
|
|
||||||
|
if (ctdb->recovery_mode != CTDB_RECOVERY_NORMAL) {
|
||||||
|
DEBUG(DEBUG_INFO, ("ctdb_persistent_callback: ignoring reply "
|
||||||
|
"during recovery\n"));
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (status != 0) {
|
if (status != 0) {
|
||||||
DEBUG(DEBUG_ERR,("ctdb_persistent_callback failed with status %d (%s)\n",
|
DEBUG(DEBUG_ERR,("ctdb_persistent_callback failed with status %d (%s)\n",
|
||||||
status, errormsg));
|
status, errormsg));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user