local: retry remove on Windows sharing violation error #2202
Before this change asynchronous closes in cmount could cause sharing violations under Windows on Remove which manifest themselves frequently as test failures. This change lets the Remove be retried on a sharing violation under Windows.
This commit is contained in:
parent
be54fd8f70
commit
42f0963bf9
4 changed files with 99 additions and 1 deletions
|
@ -837,7 +837,7 @@ func (o *Object) lstat() error {
|
|||
|
||||
// Remove an object
|
||||
func (o *Object) Remove() error {
|
||||
return os.Remove(o.path)
|
||||
return remove(o.path)
|
||||
}
|
||||
|
||||
// Return the directory and file from an OS path. Assumes
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue