mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
fix compilation
This commit is contained in:
parent
779641e9d4
commit
25fb6f9a46
|
@ -49,11 +49,11 @@ func runFilerReplicate(cmd *Command, args []string) bool {
|
||||||
for {
|
for {
|
||||||
key, m, err := notificationInput.ReceiveMessage()
|
key, m, err := notificationInput.ReceiveMessage()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
glog.Errorf("receive %s: +v", key, err)
|
glog.Errorf("receive %s: %+v", key, err)
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
if err = replicator.Replicate(key, m); err != nil {
|
if err = replicator.Replicate(key, m); err != nil {
|
||||||
glog.Errorf("replicate %s: +v", key, err)
|
glog.Errorf("replicate %s: %+v", key, err)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -54,15 +54,15 @@ func (fs *FilerSource) ReadPart(part string) (readCloser io.ReadCloser, err erro
|
||||||
})
|
})
|
||||||
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
glog.V(1).Infof("replication lookup volume id: %v", vid, err)
|
glog.V(1).Infof("replication lookup volume id %s: %v", vid, err)
|
||||||
return nil, fmt.Errorf("replicationlookup volume id %v: %v", vid, err)
|
return nil, fmt.Errorf("replication lookup volume id %s: %v", vid, err)
|
||||||
}
|
}
|
||||||
|
|
||||||
locations := vid2Locations[vid]
|
locations := vid2Locations[vid]
|
||||||
|
|
||||||
if locations == nil || len(locations.Locations) == 0 {
|
if locations == nil || len(locations.Locations) == 0 {
|
||||||
glog.V(1).Infof("replication locate volume id: %v", vid, err)
|
glog.V(1).Infof("replication locate volume id %s: %v", vid, err)
|
||||||
return nil, fmt.Errorf("replication locate volume id %v: %v", vid, err)
|
return nil, fmt.Errorf("replication locate volume id %s: %v", vid, err)
|
||||||
}
|
}
|
||||||
|
|
||||||
fileUrl := fmt.Sprintf("http://%s/%s", locations.Locations[0].Url, part)
|
fileUrl := fmt.Sprintf("http://%s/%s", locations.Locations[0].Url, part)
|
||||||
|
|
Loading…
Reference in a new issue