Browse Source
Merge pull request #763 from alex8224/master
fix invalid point when delete collection
pull/769/head
Chris Lu
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
weed/storage/volume_read_write.go
|
|
@ -40,7 +40,7 @@ func (v *Volume) Destroy() (err error) { |
|
|
|
err = fmt.Errorf("%s is read-only", v.dataFile.Name()) |
|
|
|
return |
|
|
|
} |
|
|
|
v.Close() |
|
|
|
defer v.Close() |
|
|
|
err = os.Remove(v.dataFile.Name()) |
|
|
|
if err != nil { |
|
|
|
return |
|
|
|