libglusterfs: avoid the logging which says the port is invalid
If the reserved ports file in proc contains just a newline, then do not proceed with ports checking and reserving. Change-Id: If610b0e49a97e5c22e7e2b1bb4155c9616a4612a BUG: 762989 Signed-off-by: Raghavendra Bhat <raghavendra@redhat.com> Reviewed-on: http://review.gluster.org/4583 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Jeff Darcy <jdarcy@redhat.com>
This commit is contained in:
parent
d4269b0000
commit
29e75759d5
@ -2291,17 +2291,11 @@ gf_process_reserved_ports (gf_boolean_t *ports)
|
||||
goto out;
|
||||
}
|
||||
|
||||
blocked_port = strtok_r (ports_info, ",",&tmp);
|
||||
if (!blocked_port || !strcmp (blocked_port, ports_info)) {
|
||||
if (!blocked_port)
|
||||
blocked_port = ports_info;
|
||||
gf_ports_reserved (blocked_port, ports);
|
||||
blocked_port = strtok_r (NULL, ",", &tmp);
|
||||
}
|
||||
blocked_port = strtok_r (ports_info, ",\n",&tmp);
|
||||
|
||||
while (blocked_port) {
|
||||
gf_ports_reserved (blocked_port, ports);
|
||||
blocked_port = strtok_r (NULL, ",", &tmp);
|
||||
blocked_port = strtok_r (NULL, ",\n", &tmp);
|
||||
}
|
||||
|
||||
ret = 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user