Denis Shaposhnikov
ebc46cf1c0
Fix last_n keep rule ( #691 ) ( #750 )
...
From https://github.com/zrepl/zrepl/issues/691
The last_n prune rule keeps everything, regardless of if it matches the
regex or not, if there are less than count snapshot. The expectation
would be to never keep non-regex snapshots, regardless of number.
2023-12-22 13:38:14 +01:00
Christian Schwarz
f661d9429f
pruning/keep_last_n: correctly handle the case where count
> matching snaps
...
fixes #446
2021-03-25 22:42:01 +01:00
Christian Schwarz
b1f8cdf385
[ #373 ] pruning: add optional regex
field to last_n
rule
...
fixes #373
2020-09-02 22:45:44 +02:00
Christian Schwarz
ad7a104ab4
[ #292 ] pruning: simplify table test driver
2020-09-02 22:45:44 +02:00
Christian Schwarz
afed762774
format source tree using goimports
2019-03-22 19:41:12 +01:00
Christian Schwarz
d684302864
pruning: fix tests + implement 'not_replicated' and 'keep_regex' keep rule
...
tests expected that a KeepRule returns a *keep* list whereas it
actually returns a *destroy* list.
2018-08-30 11:46:47 +02:00