forked from TrueCloudLab/frostfs-s3-gw
[#653] Support removal old unversioned objects
Signed-off-by: Denis Kirillov <d.kirillov@yadro.com>
This commit is contained in:
parent
c0c99a1839
commit
4a430257a4
18 changed files with 289 additions and 61 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue