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.

filer store YDB: fix upsert with TTL (#6469)

MaratKarimov4fe1248aa8d8
diff --git a/weed/filer/ydb/ydb_types.go b/weed/filer/ydb/ydb_types.go
index 4e5100236d..dd869cac6d 100644
--- a/weed/filer/ydb/ydb_types.go
+++ b/weed/filer/ydb/ydb_types.go
@@ -22,7 +22,7 @@ type FileMetas []FileMeta
func (fm *FileMeta) queryParameters(ttlSec int32) *table.QueryParameters {
var expireAtValue types.Value
if ttlSec > 0 {
- expireAtValue = types.Uint32Value(uint32(ttlSec))
+ expireAtValue = types.OptionalValue(types.Uint32Value(uint32(ttlSec)))
} else {
expireAtValue = types.NullValue(types.TypeUint32)
}