mirror of
https://github.com/samba-team/samba.git
synced 2025-02-26 21:57:41 +03:00
ctdb-ipalloc: Store known public IPs in IP allocation state
This was dropped because it wasn't used, but it will be needed again. BUG: https://bugzilla.samba.org/show_bug.cgi?id=12254 Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com> (cherry picked from commit 0e5c62d8fc7fa51b4fb1dd435fe9c776586e5947)
This commit is contained in:
parent
d7c170415f
commit
2476e08d3f
@ -230,6 +230,7 @@ bool ipalloc_set_public_ips(struct ipalloc_state *ipalloc_state,
|
||||
struct ctdb_public_ip_list *available_ips)
|
||||
{
|
||||
ipalloc_state->available_public_ips = available_ips;
|
||||
ipalloc_state->known_public_ips = known_ips;
|
||||
|
||||
ipalloc_state->all_ips = create_merged_ip_list(ipalloc_state,
|
||||
known_ips);
|
||||
|
@ -31,6 +31,7 @@ struct ipalloc_state {
|
||||
|
||||
/* Arrays with data for each node */
|
||||
struct ctdb_public_ip_list *available_public_ips;
|
||||
struct ctdb_public_ip_list *known_public_ips;
|
||||
bool *noiptakeover;
|
||||
bool *noiphost;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user