mirror of
https://github.com/kopia/kopia.git
synced 2026-05-14 01:37:07 -04:00
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
20 lines
593 B
Go
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...)
|
|
}
|