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
better log message
Chris Lu8af7906b3da3
diff --git a/weed-fs/src/pkg/storage/store.go b/weed-fs/src/pkg/storage/store.goindex abd336d5dd..877338f046 100644--- a/weed-fs/src/pkg/storage/store.go+++ b/weed-fs/src/pkg/storage/store.go@@ -130,7 +130,7 @@ type JoinResult struct {}func (s *Store) SetMaster(mserver string) {- s.masterNode = mserver+ s.masterNode = mserver}func (s *Store) Join() error {stats := new([]*VolumeInfo)@@ -165,7 +165,8 @@ func (s *Store) Close() {func (s *Store) Write(i VolumeId, n *Needle) uint32 {if v := s.volumes[i]; v != nil {size := v.write(n)- if s.volumeSizeLimit < v.ContentSize()+uint64(size) {+ if s.volumeSizeLimit < v.ContentSize()+uint64(size) && s.volumeSizeLimit >= v.ContentSize() {+ log.Println("volume", i, "size is", v.ContentSize(), "close to", s.volumeSizeLimit)s.Join()}return size