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.
Go blob-storagecloud-drivedistributed-file-systemdistributed-storageerasure-codingfusehadoop-hdfshdfskuberneteslancelancedbobject-storageposixs3s3-storageseaweedfstiered-file-systemvector-search
working
chrislu30f8600a2485
diff --git a/docker/Dockerfile.local b/docker/Dockerfile.localindex b87c0d8e92..269a993b49 100644--- a/docker/Dockerfile.local+++ b/docker/Dockerfile.local@@ -1,8 +1,8 @@FROM alpine AS finalLABEL author="Chris Lu"COPY ./weed /usr/bin/-COPY ./weed_pub /usr/bin/-COPY ./weed_sub /usr/bin/+COPY ./weed_pub* /usr/bin/+COPY ./weed_sub* /usr/bin/RUN mkdir -p /etc/seaweedfsCOPY ./filer.toml /etc/seaweedfs/filer.tomlCOPY ./entrypoint.sh /entrypoint.shdiff --git a/docker/Makefile b/docker/Makefileindex f36ffed4ac..b4a61fb014 100644--- a/docker/Makefile+++ b/docker/Makefile@@ -9,8 +9,10 @@ binary:export SWCOMMIT=$(shell git rev-parse --short HEAD)export SWLDFLAGS="-X github.com/seaweedfs/seaweedfs/weed/util.COMMIT=$(SWCOMMIT)"cd ../weed && CGO_ENABLED=$(cgo) GOOS=linux go build $(options) -tags "$(tags)" -ldflags "-s -w -extldflags -static $(SWLDFLAGS)" && mv weed ../docker/- cd ../weed/mq/client/cmd/weed_pub && CGO_ENABLED=$(cgo) GOOS=linux go build && mv weed_pub ../../../../../docker/- cd ../weed/mq/client/cmd/weed_sub && CGO_ENABLED=$(cgo) GOOS=linux go build && mv weed_sub ../../../../../docker/+ cd ../weed/mq/client/cmd/weed_pub_kv && CGO_ENABLED=$(cgo) GOOS=linux go build && mv weed_pub_kv ../../../../../docker/+ cd ../weed/mq/client/cmd/weed_pub_record && CGO_ENABLED=$(cgo) GOOS=linux go build && mv weed_pub_record ../../../../../docker/+ cd ../weed/mq/client/cmd/weed_sub_kv && CGO_ENABLED=$(cgo) GOOS=linux go build && mv weed_sub_kv ../../../../../docker/+ cd ../weed/mq/client/cmd/weed_sub_record && CGO_ENABLED=$(cgo) GOOS=linux go build && mv weed_sub_record ../../../../../docker/binary_race: options = -racebinary_race: cgo = 1diff --git a/weed/mq/schema/schema.go b/weed/mq/schema/schema.goindex 72064f5d7b..1f99dda5ba 100644--- a/weed/mq/schema/schema.go+++ b/weed/mq/schema/schema.go@@ -10,7 +10,7 @@ type Schema struct {}func NewSchema(recordType *schema_pb.RecordType) (*Schema, error) {- var fieldMap map[string]*schema_pb.Field+ fieldMap := make( map[string]*schema_pb.Field)for _, field := range recordType.Fields {fieldMap[field.Name] = field}