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 logic error

Chris Lu87e5a02a9996
diff --git a/weed/storage/volume_super_block.go b/weed/storage/volume_super_block.go
index d0f2757faa..47cddaba47 100644
--- a/weed/storage/volume_super_block.go
+++ b/weed/storage/volume_super_block.go
@@ -70,7 +70,7 @@ func (s *SuperBlock) Bytes() []byte {
}
func (s *SuperBlock) Initialized() bool {
- return s.ReplicaPlacement == nil || s.Ttl == nil
+ return s.ReplicaPlacement != nil && s.Ttl != nil
}
func (v *Volume) maybeWriteSuperBlock() error {