[#619] Filter system metadata

Signed-off-by: Angira Kekteeva <kira@nspcc.ru>
This commit is contained in:
Angira Kekteeva 2022-07-26 05:08:25 +04:00 committed by Alex Vanin
parent 4380406602
commit 4483c6f57a
2 changed files with 22 additions and 10 deletions

View file

@ -613,7 +613,8 @@ func (n *layer) getAllObjectsVersions(ctx context.Context, bkt *data.BucketInfo,
}
func IsSystemHeader(key string) bool {
return strings.HasPrefix(key, "S3-")
_, ok := api.SystemMetadata[key]
return ok || strings.HasPrefix(key, api.NeoFSSystemMetadataPrefix)
}
func shouldSkip(node *data.NodeVersion, p allObjectParams, existed map[string]struct{}) bool {