This commit is contained in:
chrislu 2022-05-01 23:16:29 -07:00
parent ce1e8e58ae
commit 00c1dfec4f
3 changed files with 5 additions and 5 deletions

View file

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

View file

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

View file

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