mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +03:00
ctdb-freeze: Move destructor closer to where it is used
Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>
This commit is contained in:
parent
5447864e5d
commit
fd7ceaf3ac
@ -351,15 +351,6 @@ static void ctdb_freeze_lock_handler(void *private_data, bool locked)
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
destroy a waiter for a freeze mode change
|
||||
*/
|
||||
static int ctdb_freeze_waiter_destructor(struct ctdb_freeze_waiter *w)
|
||||
{
|
||||
ctdb_request_control_reply(w->ctdb, w->c, NULL, w->status, NULL);
|
||||
return 0;
|
||||
}
|
||||
|
||||
/*
|
||||
start the freeze process for a certain priority
|
||||
*/
|
||||
@ -401,6 +392,15 @@ void ctdb_start_freeze(struct ctdb_context *ctdb, uint32_t priority)
|
||||
ctdb->freeze_mode[priority] = CTDB_FREEZE_PENDING;
|
||||
}
|
||||
|
||||
/*
|
||||
destroy a waiter for a freeze mode change
|
||||
*/
|
||||
static int ctdb_freeze_waiter_destructor(struct ctdb_freeze_waiter *w)
|
||||
{
|
||||
ctdb_request_control_reply(w->ctdb, w->c, NULL, w->status, NULL);
|
||||
return 0;
|
||||
}
|
||||
|
||||
/*
|
||||
freeze the databases
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user