This commit is contained in:
Chris Lu 2021-02-10 23:41:05 -08:00
parent c959aaa19b
commit a0e84c4fbc
4 changed files with 3 additions and 4 deletions

View file

@ -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"

View file

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

View file

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

View file

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