mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
ctdb-tests: Have fake daemon log when it parses public IPs
Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
This commit is contained in:
parent
28d6356a65
commit
f025f5c0a7
@ -737,6 +737,8 @@ static struct database *database_find(struct database_map *map,
|
||||
static bool public_ips_parse(struct ctdbd_context *ctdb,
|
||||
uint32_t numnodes)
|
||||
{
|
||||
bool status;
|
||||
|
||||
if (numnodes == 0) {
|
||||
D_ERR("Must initialise nodemap before public IPs\n");
|
||||
return false;
|
||||
@ -744,7 +746,15 @@ static bool public_ips_parse(struct ctdbd_context *ctdb,
|
||||
|
||||
ctdb->known_ips = ipalloc_read_known_ips(ctdb, numnodes, false);
|
||||
|
||||
return (ctdb->known_ips != NULL);
|
||||
status = (ctdb->known_ips != NULL);
|
||||
|
||||
if (status) {
|
||||
D_INFO("Parsing public IPs done\n");
|
||||
} else {
|
||||
D_INFO("Parsing public IPs failed\n");
|
||||
}
|
||||
|
||||
return status;
|
||||
}
|
||||
|
||||
/* Read information about controls to fail. Format is:
|
||||
|
Loading…
Reference in New Issue
Block a user