Files
kopia/repo/locking_storage.go
Julio Lopez 1961ed4dc3 refactor(general): extendBlobRetentionTime (#4960)
Refactor extendeBlobRetentionTime

- unexport extendBlobRetentionTime
- use `atomic.Uint32` type instead of `uint32` with atomic functions
- rename `cnt` to `extendedCount` for clarity
- simplify logging
- return blob.ID from GetLockingStoragePrefixes
- simplify extendBlobRetentionTime with errgroup
- remove linter annotation
- remove ineffective dryRun check
2025-11-05 23:28:17 -08:00

20 lines
593 B
Go

package repo
import (
"github.com/kopia/kopia/internal/epoch"
"github.com/kopia/kopia/repo/blob"
"github.com/kopia/kopia/repo/content"
"github.com/kopia/kopia/repo/content/indexblob"
"github.com/kopia/kopia/repo/format"
)
// GetLockingStoragePrefixes Return all prefixes that may be maintained by Object Locking.
func GetLockingStoragePrefixes() []blob.ID {
return append([]blob.ID{
blob.ID(indexblob.V0IndexBlobPrefix),
blob.ID(epoch.EpochManagerIndexUberPrefix),
blob.ID(format.KopiaRepositoryBlobID),
blob.ID(format.KopiaBlobCfgBlobID),
}, content.PackBlobIDPrefixes...)
}