mirror of
https://github.com/restic/restic.git
synced 2025-08-11 10:07:47 +00:00
upgrade_repo_v2: Use atomic replace for supported backends
This commit is contained in:
@@ -268,6 +268,11 @@ func (be *MemoryBackend) Hasher() hash.Hash {
|
||||
return md5.New()
|
||||
}
|
||||
|
||||
// HasAtomicReplace returns whether Save() can atomically replace files
|
||||
func (be *MemoryBackend) HasAtomicReplace() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// Delete removes all data in the backend.
|
||||
func (be *MemoryBackend) Delete(ctx context.Context) error {
|
||||
be.m.Lock()
|
||||
|
Reference in New Issue
Block a user