conf: don't allow disabling clientloglimit
Don't treat zero as a special value disabling clientloglimit. It's not useful, the amount of available memory is never unlimited.
This commit is contained in:
parent
801830df57
commit
f2b82c1e1d
2 changed files with 5 additions and 8 deletions
|
@ -1355,9 +1355,11 @@ directive}).
|
||||||
@subsection clientloglimit
|
@subsection clientloglimit
|
||||||
This directive specifies the maximum size of the memory allocated to
|
This directive specifies the maximum size of the memory allocated to
|
||||||
log client accesses. When the limit is reached, only information for
|
log client accesses. When the limit is reached, only information for
|
||||||
clients that have already been logged will be updated. If 0 is
|
clients that have already been logged will be updated. The default is
|
||||||
specified, the memory size will be unlimited. The default is 524288
|
524288 bytes.
|
||||||
bytes.
|
|
||||||
|
In older @code{chrony} versions if the limit was set to 0, the memory
|
||||||
|
allocation was unlimited.
|
||||||
|
|
||||||
An example of the use of this directive is
|
An example of the use of this directive is
|
||||||
|
|
||||||
|
|
5
conf.c
5
conf.c
|
@ -862,11 +862,6 @@ parse_clientloglimit(char *line)
|
||||||
if (sscanf(line, "%lu", &client_log_limit) != 1) {
|
if (sscanf(line, "%lu", &client_log_limit) != 1) {
|
||||||
command_parse_error();
|
command_parse_error();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (client_log_limit == 0) {
|
|
||||||
/* unlimited */
|
|
||||||
client_log_limit = (unsigned long)-1;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ================================================== */
|
/* ================================================== */
|
||||||
|
|
Loading…
Reference in a new issue