exclude veeam virtual objects from replication (#18918)

Fixes: #18916
This commit is contained in:
Poorna 2024-01-30 10:43:58 -08:00 committed by GitHub
parent bcfd7fbbcf
commit 7ffc162ea8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 12 additions and 0 deletions

View File

@ -3213,6 +3213,9 @@ func queueReplicationHeal(ctx context.Context, bucket string, oi ObjectInfo, rcf
return roi
}
if isVeeamSOSAPIObject(oi.Name) {
return roi
}
if rcfg.Config == nil || rcfg.remotes == nil {
return roi
}

View File

@ -117,6 +117,15 @@ const (
capacityXMLObject = ".system-d26a9498-cb7c-4a87-a44a-8ae204f5ba6c/capacity.xml"
)
func isVeeamSOSAPIObject(object string) bool {
switch object {
case systemXMLObject, capacityXMLObject:
return true
default:
return false
}
}
func veeamSOSAPIHeadObject(ctx context.Context, bucket, object string, opts ObjectOptions) (ObjectInfo, error) {
gr, err := veeamSOSAPIGetObject(ctx, bucket, object, nil, opts)
if gr != nil {