1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-10 05:18:36 +03:00

Log an error if clvmd can't resolve a host name got from CCS

Fix potential spin loop in clvmd
This commit is contained in:
Patrick Caulfield 2005-06-14 10:35:02 +00:00
parent ecb42bee80
commit ca4e0c973a
3 changed files with 13 additions and 1 deletions

View File

@ -1,5 +1,7 @@
Version 2.01.12 -
================================
Log an error if clvmd can't resolve a host name got from CCS
Fix potential spin loop in clvmd
Version 2.01.11 - 13th June 2005
================================

View File

@ -944,7 +944,13 @@ static int get_all_cluster_nodes()
}
else
{
DEBUGLOG("node %s has clvm disabled\n", nodename);
if (!clvmflag) {
DEBUGLOG("node %s has clvm disabled\n", nodename);
}
else {
DEBUGLOG("Cannot resolve host name %s\n", nodename);
log_err("Cannot resolve host name %s\n", nodename);
}
}
free(nodename);
}

View File

@ -512,6 +512,10 @@ static void main_loop(int local_sock, int cmd_timeout)
FD_ZERO(&in);
for (thisfd = &local_client_head; thisfd != NULL;
thisfd = thisfd->next) {
if (thisfd->removeme)
continue;
/* if the cluster is not quorate then don't listen for new requests */
if ((thisfd->type != LOCAL_RENDEZVOUS &&
thisfd->type != LOCAL_SOCK) || quorate)