[PATCH] vinyl: reset dump watermark after updating memory limit
Vladimir Davydov
vdavydov.dev at gmail.com
Fri Mar 15 17:12:19 MSK 2019
On Fri, Mar 15, 2019 at 05:11:51PM +0300, Vladimir Davydov wrote:
> The watermark is updated every second anyway, however not updating it
> when the limit is reset results in vinyl/quota test failure:
>
> | --- vinyl/quota.result Thu Mar 14 16:03:54 2019
> | +++ vinyl/quota.reject Fri Mar 15 16:32:44 2019
> | @@ -146,7 +146,7 @@
> | for i = 1, count do s:replace{i, pad} end -- does not trigger dump
> | ---
> | ...
> | -box.stat.vinyl().memory.level0 > count * pad:len()
> | +box.stat.vinyl().memory.level0 > count * pad:len() or box.stat.vinyl()
> | ---
> | - true
> | ...
>
> Closes #3864
> ---
> https://github.com/tarantool/tarantool/issues/3864
>
> src/box/vinyl.c | 2 +-
> src/box/vy_regulator.c | 7 +++++++
> src/box/vy_regulator.h | 6 ++++++
> 3 files changed, 14 insertions(+), 1 deletion(-)
Trivial. Pushed to 2.1.
More information about the Tarantool-patches
mailing list