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
fix possible nil
Chris Lu943f4986ef27
diff --git a/weed/storage/needle/volume_ttl.go b/weed/storage/needle/volume_ttl.goindex 4a169870d6..179057876f 100644--- a/weed/storage/needle/volume_ttl.go+++ b/weed/storage/needle/volume_ttl.go@@ -69,6 +69,9 @@ func (t *TTL) ToBytes(output []byte) {}func (t *TTL) ToUint32() (output uint32) {+ if t == nil || t.Count == 0 {+ return 0+ }output = uint32(t.Count) << 8output += uint32(t.Unit)return output