[#1445] local_object_storage: Append expiration epoch to graves

In the near future the garbage collector will delete expired tombstones
and graves separately. So, all graves should have expiration epochs.

Signed-off-by: Aleksey Savchuk <a.savchuk@yadro.com>
This commit is contained in:
Aleksey Savchuk 2024-12-12 13:16:44 +03:00
parent 9b29e7392f
commit efec26b8ef
Signed by: a-savchuk
GPG key ID: 70C0A7FF6F9C4639
23 changed files with 261 additions and 30 deletions

View file

@ -186,6 +186,7 @@ func PopulateGraveyard(
prm := meta.InhumePrm{}
prm.SetAddresses(addr)
prm.SetTombstoneAddress(tsAddr)
prm.SetTombstoneExpEpoch(rand.Uint64())
group.Go(func() error {
if _, err := db.Inhume(ctx, prm); err != nil {