MINOR: config: Relax tests on the configured size of small buffers

When small buffer size was greater than the default buffer size, an error
was triggered. We now do the same than for large buffer. A warning is
emitted and the small buffer size is set to 0 do disable small buffer
allocation.
This commit is contained in:
Christopher Faulet 2026-03-10 18:48:05 +01:00
parent 01b9b67d5c
commit b71f70d548

View file

@ -2328,8 +2328,8 @@ int check_config_validity()
else if (global.tune.bufsize_small > global.tune.bufsize) {
ha_warning("invalid small buffer size %d bytes which is greater to default bufsize %d bytes.\n",
global.tune.bufsize_small, global.tune.bufsize);
err_code |= ERR_FATAL | ERR_ABORT;
goto out;
global.tune.bufsize_small = 0;
err_code |= ERR_WARN;
}
}