mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
recoverd: Print banning message only after verifying pnn
Signed-off-by: Amitay Isaacs <amitay@gmail.com> (This used to be ctdb commit 4be8dff3a4451192f838497b4747273685959bed)
This commit is contained in:
parent
6960bf78ff
commit
d439aa05a8
@ -86,13 +86,13 @@ static void ctdb_ban_node(struct ctdb_recoverd *rec, uint32_t pnn, uint32_t ban_
|
||||
struct ctdb_context *ctdb = rec->ctdb;
|
||||
struct ctdb_ban_time bantime;
|
||||
|
||||
DEBUG(DEBUG_NOTICE,("Banning node %u for %u seconds\n", pnn, ban_time));
|
||||
|
||||
if (!ctdb_validate_pnn(ctdb, pnn)) {
|
||||
DEBUG(DEBUG_ERR,("Bad pnn %u in ctdb_ban_node\n", pnn));
|
||||
return;
|
||||
}
|
||||
|
||||
DEBUG(DEBUG_NOTICE,("Banning node %u for %u seconds\n", pnn, ban_time));
|
||||
|
||||
bantime.pnn = pnn;
|
||||
bantime.time = ban_time;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user