mirror of
https://github.com/ceph/ceph
synced 2025-02-23 11:07:35 +00:00
config: correctly notify when OPT_ADDR config options are found.
This commit is contained in:
parent
d0f7412e5f
commit
d6c8f8c801
@ -926,7 +926,15 @@ int conf_read_key_ext(const char *conf_name, const char *conf_alt_name, const ch
|
||||
OPT_READ_TYPE(ret, section, key, double, out, def);
|
||||
break;
|
||||
case OPT_ADDR:
|
||||
OPT_READ_TYPE(ret, section, key, char *, out, def);
|
||||
ret = cf->read(section, key, &tmp, (char *)def);
|
||||
if (*tmp == *((char *)def)) {
|
||||
ret = 0;
|
||||
}
|
||||
else {
|
||||
ret = 1;
|
||||
}
|
||||
((entity_addr_t*)out)->parse(tmp);
|
||||
break;
|
||||
default:
|
||||
ret = 0;
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user