aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaratKarimov <wto17ty@gmail.com>2025-01-22 18:45:54 +0300
committerGitHub <noreply@github.com>2025-01-22 07:45:54 -0800
commit4fe1248aa8d8b3425fd543325e8d4a30d193657e (patch)
tree581139fa70d201c456f8c63584d6ac5a502b1691
parent5452405a810f3590848aba3acb3f4809f7623ddf (diff)
downloadseaweedfs-4fe1248aa8d8b3425fd543325e8d4a30d193657e.tar.xz
seaweedfs-4fe1248aa8d8b3425fd543325e8d4a30d193657e.zip
filer store YDB: fix upsert with TTL (#6469)
-rw-r--r--weed/filer/ydb/ydb_types.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/weed/filer/ydb/ydb_types.go b/weed/filer/ydb/ydb_types.go
index 4e5100236..dd869cac6 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)
}