mirror of
https://github.com/restic/restic.git
synced 2025-10-09 10:44:38 +00:00
upgrade_repo_v2: Use atomic replace for supported backends
This commit is contained in:
@@ -129,6 +129,11 @@ func (be *beSwift) Hasher() hash.Hash {
|
||||
return md5.New()
|
||||
}
|
||||
|
||||
// HasAtomicReplace returns whether Save() can atomically replace files
|
||||
func (be *beSwift) HasAtomicReplace() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// Load runs fn with a reader that yields the contents of the file at h at the
|
||||
// given offset.
|
||||
func (be *beSwift) Load(ctx context.Context, h restic.Handle, length int, offset int64, fn func(rd io.Reader) error) error {
|
||||
|
Reference in New Issue
Block a user