From c0fb4a3766d9630abfa5e7083cf1fbfaab26d837 Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Thu, 26 Nov 2020 15:22:42 -0800 Subject: [PATCH] add comments --- weed/storage/volume_read_write.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/weed/storage/volume_read_write.go b/weed/storage/volume_read_write.go index 869796a3f..1a9beea7f 100644 --- a/weed/storage/volume_read_write.go +++ b/weed/storage/volume_read_write.go @@ -61,13 +61,18 @@ func (v *Volume) Destroy() (err error) { } func removeVolumeFiles(filename string) { + // basic os.Remove(filename + ".dat") os.Remove(filename + ".idx") os.Remove(filename + ".vif") + // sorted index file os.Remove(filename + ".sdx") + // compaction os.Remove(filename + ".cpd") os.Remove(filename + ".cpx") + // level db indx file os.RemoveAll(filename + ".ldb") + // marker for damaged or incomplete volume os.Remove(filename + ".note") }