[#653] Support removal old unversioned objects

Signed-off-by: Denis Kirillov <d.kirillov@yadro.com>
This commit is contained in:
Denis Kirillov 2025-03-05 17:44:23 +03:00 committed by Alexey Vanin
parent c0c99a1839
commit 4a430257a4
18 changed files with 289 additions and 61 deletions

View file

@ -33,8 +33,9 @@ import (
)
type FeatureSettingsMock struct {
clientCut bool
md5Enabled bool
clientCut bool
md5Enabled bool
removeOnReplace bool
}
func (k *FeatureSettingsMock) TombstoneLifetime() uint64 {
@ -73,6 +74,22 @@ func (k *FeatureSettingsMock) FormContainerZone(ns string) string {
return ns + ".ns"
}
func (k *FeatureSettingsMock) SetRemoveOnReplace(removeOnReplace bool) {
k.removeOnReplace = removeOnReplace
}
func (k *FeatureSettingsMock) RemoveOnReplace() bool {
return k.removeOnReplace
}
func (k *FeatureSettingsMock) RemoveOnReplaceTimeout() time.Duration {
return time.Minute
}
func (k *FeatureSettingsMock) RemoveOnReplaceQueue() int {
return 1
}
var _ frostfs.FrostFS = (*TestFrostFS)(nil)
type offsetError struct {