mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
go fmt
This commit is contained in:
parent
09ca936c78
commit
8a2d529759
|
@ -168,7 +168,7 @@ func (vs *VolumeServer) VolumeEcShardsDelete(ctx context.Context, req *volume_se
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
for _, fileInfo := range fileInfos {
|
for _, fileInfo := range fileInfos {
|
||||||
if fileInfo.Name() == bName+".ecx" || fileInfo.Name() == bName+".ecj"{
|
if fileInfo.Name() == bName+".ecx" || fileInfo.Name() == bName+".ecj" {
|
||||||
hasEcxFile = true
|
hasEcxFile = true
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
|
@ -45,7 +45,6 @@ func (c *commandFsDu) Do(args []string, commandEnv *CommandEnv, writer io.Writer
|
||||||
path = path + "/"
|
path = path + "/"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
var blockCount, byteCount uint64
|
var blockCount, byteCount uint64
|
||||||
dir, name := filer2.FullPath(path).DirAndName()
|
dir, name := filer2.FullPath(path).DirAndName()
|
||||||
blockCount, byteCount, err = duTraverseDirectory(ctx, writer, commandEnv.getFilerClient(filerServer, filerPort), dir, name)
|
blockCount, byteCount, err = duTraverseDirectory(ctx, writer, commandEnv.getFilerClient(filerServer, filerPort), dir, name)
|
||||||
|
|
|
@ -19,7 +19,7 @@ type SortedFileNeedleMap struct {
|
||||||
func NewSortedFileNeedleMap(baseFileName string, indexFile *os.File) (m *SortedFileNeedleMap, err error) {
|
func NewSortedFileNeedleMap(baseFileName string, indexFile *os.File) (m *SortedFileNeedleMap, err error) {
|
||||||
m = &SortedFileNeedleMap{baseFileName: baseFileName}
|
m = &SortedFileNeedleMap{baseFileName: baseFileName}
|
||||||
m.indexFile = indexFile
|
m.indexFile = indexFile
|
||||||
fileName := baseFileName+".sdb"
|
fileName := baseFileName + ".sdb"
|
||||||
if !isSortedFileFresh(fileName, indexFile) {
|
if !isSortedFileFresh(fileName, indexFile) {
|
||||||
glog.V(0).Infof("Start to Generate %s from %s", fileName, indexFile.Name())
|
glog.V(0).Infof("Start to Generate %s from %s", fileName, indexFile.Name())
|
||||||
erasure_coding.WriteSortedFileFromIdx(baseFileName, ".sdb")
|
erasure_coding.WriteSortedFileFromIdx(baseFileName, ".sdb")
|
||||||
|
|
Loading…
Reference in a new issue