diff options
| author | chrislu <chris.lu@gmail.com> | 2022-08-25 00:20:23 -0700 |
|---|---|---|
| committer | chrislu <chris.lu@gmail.com> | 2022-08-25 00:20:23 -0700 |
| commit | 7394f7feeea6477bb38aa887c35300e0c0b5e7b3 (patch) | |
| tree | a03877429eb7fa93601e45955a4188021b5cf374 | |
| parent | dbf0de4ce1a03323d46beafb1ede36302d61534e (diff) | |
| download | seaweedfs-7394f7feeea6477bb38aa887c35300e0c0b5e7b3.tar.xz seaweedfs-7394f7feeea6477bb38aa887c35300e0c0b5e7b3.zip | |
minor: adjust ordering
| -rw-r--r-- | weed/command/fix.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/weed/command/fix.go b/weed/command/fix.go index 46cfc40db..f0499a818 100644 --- a/weed/command/fix.go +++ b/weed/command/fix.go @@ -127,11 +127,10 @@ func doFixOneVolume(basepath string, baseFileName string, collection string, vol if err := storage.ScanVolumeFile(basepath, collection, vid, storage.NeedleMapInMemory, scanner); err != nil { glog.Fatalf("scan .dat File: %v", err) - os.Remove(indexFileName) } if err := nm.SaveToIdx(indexFileName); err != nil { - glog.Fatalf("save to .idx File: %v", err) os.Remove(indexFileName) + glog.Fatalf("save to .idx File: %v", err) } } |
