mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-08-06 23:27:04 +02:00
BUILD/MINOR: deviceatlas: enable thread support
DeviceAtlas detection being multi-thread safe, we enable the new thread feature support. Needs to be backported to 1.8 branch.
This commit is contained in:
parent
7b888f1235
commit
e78915a47a
6
src/da.c
6
src/da.c
@ -121,12 +121,6 @@ static int init_deviceatlas(void)
|
|||||||
size_t atlasimglen;
|
size_t atlasimglen;
|
||||||
da_status_t status;
|
da_status_t status;
|
||||||
|
|
||||||
if (global.nbthread > 1) {
|
|
||||||
ha_alert("deviceatlas: multithreading is not supported for now.\n");
|
|
||||||
err_code |= ERR_ALERT | ERR_FATAL;
|
|
||||||
goto out;
|
|
||||||
}
|
|
||||||
|
|
||||||
jsonp = fopen(global_deviceatlas.jsonpath, "r");
|
jsonp = fopen(global_deviceatlas.jsonpath, "r");
|
||||||
if (jsonp == 0) {
|
if (jsonp == 0) {
|
||||||
ha_alert("deviceatlas : '%s' json file has invalid path or is not readable.\n",
|
ha_alert("deviceatlas : '%s' json file has invalid path or is not readable.\n",
|
||||||
|
Loading…
Reference in New Issue
Block a user