mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
minor: adjust ordering
This commit is contained in:
parent
dbf0de4ce1
commit
7394f7feee
|
@ -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 {
|
if err := storage.ScanVolumeFile(basepath, collection, vid, storage.NeedleMapInMemory, scanner); err != nil {
|
||||||
glog.Fatalf("scan .dat File: %v", err)
|
glog.Fatalf("scan .dat File: %v", err)
|
||||||
os.Remove(indexFileName)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if err := nm.SaveToIdx(indexFileName); err != nil {
|
if err := nm.SaveToIdx(indexFileName); err != nil {
|
||||||
glog.Fatalf("save to .idx File: %v", err)
|
|
||||||
os.Remove(indexFileName)
|
os.Remove(indexFileName)
|
||||||
|
glog.Fatalf("save to .idx File: %v", err)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue