1
0
Fork 0
mirror of https://github.com/chrislusf/seaweedfs synced 2024-06-16 07:32:12 +02:00

minor: adjust ordering

This commit is contained in:
chrislu 2022-08-25 00:20:23 -07:00
parent dbf0de4ce1
commit 7394f7feee

View file

@ -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)
}
}