Files
kopia/snapshot
Julio Lopez 65fc11ed58 fix(general): use a fixed time for protecting newly created content (#1994)
* test MinContentAgeSubjectToGC

* lint: move check for whether content is deleted to the caller to reduce gocycle complexity

* nit: add new lines before return

* log GC stats

* fix(maintenance): use a fixed time for protecting newly created content

Previously, the reference time used to determine whether a content had been
recently created would change througout a snapshot GC execution. For
long-running GC tasks, this non-deterministically shrinked the safety window
specified in `MinContentAgeSubjectToGC`.

Now, the snapshot GC starting time is used as a fix refererence for the
safety check.

* remove test entry point to avoid double execution of the test
2022-05-31 20:29:38 -07:00
..
2019-06-02 22:56:57 -07:00