Skip to content

SeaweedFS is a distributed storage system for object storage (S3), file systems, Iceberg table buckets, and Lance vector buckets, designed to handle billions of files with O(1) disk access and effortless horizontal scaling.

fix compilation

Chris Lu25fb6f9a465d
diff --git a/weed/command/filer_replication.go b/weed/command/filer_replication.go
index 25bca7c97e..5fef89fc83 100644
--- a/weed/command/filer_replication.go
+++ b/weed/command/filer_replication.go
@@ -49,11 +49,11 @@ func runFilerReplicate(cmd *Command, args []string) bool {
for {
key, m, err := notificationInput.ReceiveMessage()
if err != nil {
- glog.Errorf("receive %s: +v", key, err)
+ glog.Errorf("receive %s: %+v", key, err)
continue
}
if err = replicator.Replicate(key, m); err != nil {
- glog.Errorf("replicate %s: +v", key, err)
+ glog.Errorf("replicate %s: %+v", key, err)
}
}
diff --git a/weed/replication/source/filer_source.go b/weed/replication/source/filer_source.go
index c3b575b6d3..f6a4cc55f8 100644
--- a/weed/replication/source/filer_source.go
+++ b/weed/replication/source/filer_source.go
@@ -54,15 +54,15 @@ func (fs *FilerSource) ReadPart(part string) (readCloser io.ReadCloser, err erro
})
if err != nil {
- glog.V(1).Infof("replication lookup volume id: %v", vid, err)
- return nil, fmt.Errorf("replicationlookup volume id %v: %v", vid, err)
+ glog.V(1).Infof("replication lookup volume id %s: %v", vid, err)
+ return nil, fmt.Errorf("replication lookup volume id %s: %v", vid, err)
}
locations := vid2Locations[vid]
if locations == nil || len(locations.Locations) == 0 {
- glog.V(1).Infof("replication locate volume id: %v", vid, err)
- return nil, fmt.Errorf("replication locate volume id %v: %v", vid, err)
+ glog.V(1).Infof("replication locate volume id %s: %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)