diff options
author | Oran Agra <oran@redislabs.com> | 2021-07-05 09:02:54 +0300 |
---|---|---|
committer | Oran Agra <oran@redislabs.com> | 2021-07-05 09:30:16 +0300 |
commit | ec582cc7ad0706e252bc905822226e49f4c4d0e4 (patch) | |
tree | 6a2c1e3fcb5186890eddf9f0f7d51df8216b353e /src/anet.c | |
parent | 2248eaacac991a851c55dbb33bc328b7d6f780a8 (diff) | |
download | redis-ec582cc7ad0706e252bc905822226e49f4c4d0e4.tar.gz |
Query buffer shrinking improvements (#5013)
when tracking the peak, don't reset the peak to 0, reset it to the
maximum of the current used, and the planned to be used by the current
arg.
when shrining, split the two separate conditions.
the idle time shrinking will remove all free space.
but the peak based shrinking will keep room for the current arg.
when we resize due to a peak (rahter than idle time), don't trim all
unused space, let the qbuf keep a size that's sufficient for the
currently process bulklen, and the current peak.
Co-authored-by: sundb <sundbcn@gmail.com>
Co-authored-by: yoav-steinberg <yoav@monfort.co.il>
Diffstat (limited to 'src/anet.c')
0 files changed, 0 insertions, 0 deletions