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
c959aaa19b
commit
a0e84c4fbc
|
@ -3,8 +3,8 @@ package filesys
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
"fmt"
|
"fmt"
|
||||||
"github.com/chrislusf/seaweedfs/weed/storage"
|
|
||||||
"github.com/chrislusf/seaweedfs/weed/filer"
|
"github.com/chrislusf/seaweedfs/weed/filer"
|
||||||
|
"github.com/chrislusf/seaweedfs/weed/storage"
|
||||||
"github.com/chrislusf/seaweedfs/weed/wdclient"
|
"github.com/chrislusf/seaweedfs/weed/wdclient"
|
||||||
"math"
|
"math"
|
||||||
"os"
|
"os"
|
||||||
|
|
|
@ -25,7 +25,7 @@ type FilerSink struct {
|
||||||
replication string
|
replication string
|
||||||
collection string
|
collection string
|
||||||
ttlSec int32
|
ttlSec int32
|
||||||
diskType string
|
diskType string
|
||||||
dataCenter string
|
dataCenter string
|
||||||
grpcDialOption grpc.DialOption
|
grpcDialOption grpc.DialOption
|
||||||
address string
|
address string
|
||||||
|
|
|
@ -223,7 +223,7 @@ func (s3a *S3ApiServer) DeleteMultipleObjectsHandler(w http.ResponseWriter, r *h
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func doDeleteEmptyDirectories(client filer_pb.SeaweedFilerClient, directoriesWithDeletion map[string]int) (newDirectoriesWithDeletion map[string]int){
|
func doDeleteEmptyDirectories(client filer_pb.SeaweedFilerClient, directoriesWithDeletion map[string]int) (newDirectoriesWithDeletion map[string]int) {
|
||||||
var allDirs []string
|
var allDirs []string
|
||||||
for dir, _ := range directoriesWithDeletion {
|
for dir, _ := range directoriesWithDeletion {
|
||||||
allDirs = append(allDirs, dir)
|
allDirs = append(allDirs, dir)
|
||||||
|
|
|
@ -70,7 +70,6 @@ func (t *BoundedTree) ensureVisited(n *Node, currentPath util.FullPath, componen
|
||||||
} else {
|
} else {
|
||||||
// fmt.Printf("ensure %v\n", currentPath)
|
// fmt.Printf("ensure %v\n", currentPath)
|
||||||
|
|
||||||
|
|
||||||
children, err := visitFn(currentPath)
|
children, err := visitFn(currentPath)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
glog.V(0).Infof("failed to visit %s: %v", currentPath, err)
|
glog.V(0).Infof("failed to visit %s: %v", currentPath, err)
|
||||||
|
|
Loading…
Reference in a new issue