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
ce1e8e58ae
commit
00c1dfec4f
|
@ -135,7 +135,7 @@ func (s3a *S3ApiServer) PutBucketHandler(w http.ResponseWriter, r *http.Request)
|
||||||
s3err.WriteErrorResponse(w, r, s3err.ErrInternalError)
|
s3err.WriteErrorResponse(w, r, s3err.ErrInternalError)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
w.Header().Set("Location", "/" + bucket)
|
w.Header().Set("Location", "/"+bucket)
|
||||||
writeSuccessResponseEmpty(w, r)
|
writeSuccessResponseEmpty(w, r)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
package s3api
|
package s3api
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"encoding/xml"
|
|
||||||
"crypto/sha1"
|
"crypto/sha1"
|
||||||
|
"encoding/xml"
|
||||||
"fmt"
|
"fmt"
|
||||||
"github.com/chrislusf/seaweedfs/weed/glog"
|
"github.com/chrislusf/seaweedfs/weed/glog"
|
||||||
xhttp "github.com/chrislusf/seaweedfs/weed/s3api/http"
|
xhttp "github.com/chrislusf/seaweedfs/weed/s3api/http"
|
||||||
|
|
|
@ -303,8 +303,8 @@ func (t *Topology) IncrementalSyncDataNodeRegistration(newVolumes, deletedVolume
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
func (t *Topology) DataNodeRegistration(dcName, rackName string ,dn *DataNode){
|
func (t *Topology) DataNodeRegistration(dcName, rackName string, dn *DataNode) {
|
||||||
if dn.Parent() != nil{
|
if dn.Parent() != nil {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
// registration to topo
|
// registration to topo
|
||||||
|
@ -312,4 +312,4 @@ func (t *Topology) DataNodeRegistration(dcName, rackName string ,dn *DataNode){
|
||||||
rack := dc.GetOrCreateRack(rackName)
|
rack := dc.GetOrCreateRack(rackName)
|
||||||
rack.LinkChildNode(dn)
|
rack.LinkChildNode(dn)
|
||||||
glog.Infof("[%s] reLink To topo ", dn.Id())
|
glog.Infof("[%s] reLink To topo ", dn.Id())
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue