This commit is contained in:
Chris Lu
2018-11-23 00:26:15 -08:00
parent 444dfded84
commit 86dd933596
12 changed files with 28 additions and 27 deletions

View File

@@ -1,11 +1,11 @@
package storage
import (
"fmt"
"crypto/md5"
"fmt"
"github.com/klauspost/crc32"
"github.com/chrislusf/seaweedfs/weed/util"
"github.com/klauspost/crc32"
)
var table = crc32.MakeTable(crc32.Castagnoli)

View File

@@ -42,7 +42,7 @@ func (v *Volume) Destroy() (err error) {
}
v.Close()
os.Remove(v.FileName() + ".dat")
if v.nm!=nil{
if v.nm != nil {
err = v.nm.Destroy()
}
os.Remove(v.FileName() + ".cpd")