Browse Source

go fmt

pull/1513/head
Chris Lu 4 years ago
parent
commit
62d3d3aea0
  1. 2
      weed/filer/filer_delete_entry.go
  2. 2
      weed/s3api/filer_util_tags.go
  3. 1
      weed/server/master_grpc_server_volume.go

2
weed/filer/filer_delete_entry.go

@ -77,7 +77,7 @@ func (f *Filer) doBatchDeleteFolderMetaAndData(ctx context.Context, entry *Entry
if lastFileName == "" && !isRecursive && len(entries) > 0 { if lastFileName == "" && !isRecursive && len(entries) > 0 {
// only for first iteration in the loop // only for first iteration in the loop
glog.Errorf("deleting a folder %s has children: %+v ...", entry.FullPath, entries[0].Name()) glog.Errorf("deleting a folder %s has children: %+v ...", entry.FullPath, entries[0].Name())
return nil, nil,fmt.Errorf("fail to delete non-empty folder: %s", entry.FullPath)
return nil, nil, fmt.Errorf("fail to delete non-empty folder: %s", entry.FullPath)
} }
for _, sub := range entries { for _, sub := range entries {

2
weed/s3api/filer_util_tags.go

@ -6,7 +6,7 @@ import (
"github.com/chrislusf/seaweedfs/weed/pb/filer_pb" "github.com/chrislusf/seaweedfs/weed/pb/filer_pb"
) )
const(
const (
S3TAG_PREFIX = "s3-" S3TAG_PREFIX = "s3-"
) )

1
weed/server/master_grpc_server_volume.go

@ -177,4 +177,3 @@ func (ms *MasterServer) LookupEcVolume(ctx context.Context, req *master_pb.Looku
return resp, nil return resp, nil
} }
Loading…
Cancel
Save