diff options
| author | Chris Lu <chris.lu@gmail.com> | 2020-11-26 15:22:42 -0800 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2020-11-26 15:22:42 -0800 |
| commit | c0fb4a3766d9630abfa5e7083cf1fbfaab26d837 (patch) | |
| tree | 399327ea1807db04895c31ac85474d7151c3cdfe /weed | |
| parent | 6783ae5f8f9dbd1ef6c9db6c366a3d26639154cd (diff) | |
| download | seaweedfs-c0fb4a3766d9630abfa5e7083cf1fbfaab26d837.tar.xz seaweedfs-c0fb4a3766d9630abfa5e7083cf1fbfaab26d837.zip | |
add comments
Diffstat (limited to 'weed')
| -rw-r--r-- | weed/storage/volume_read_write.go | 5 |
1 files changed, 5 insertions, 0 deletions
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") } |
