From f64dc7465bfbfd830efdee849b640614c1d30f52 Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Mon, 17 Dec 2018 20:33:32 -0800 Subject: [PATCH] remove index file fix https://github.com/chrislusf/seaweedfs/issues/793 --- weed/storage/volume_read_write.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/weed/storage/volume_read_write.go b/weed/storage/volume_read_write.go index 1b9fb8d6e..ae8dd1d40 100644 --- a/weed/storage/volume_read_write.go +++ b/weed/storage/volume_read_write.go @@ -42,9 +42,7 @@ func (v *Volume) Destroy() (err error) { } v.Close() os.Remove(v.FileName() + ".dat") - if v.nm != nil { - err = v.nm.Destroy() - } + os.Remove(v.FileName() + ".idx") os.Remove(v.FileName() + ".cpd") os.Remove(v.FileName() + ".cpx") os.Remove(v.FileName() + ".ldb")