mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-10-23 22:40:39 +02:00
filer store YDB: fix upsert with TTL (#6469)
This commit is contained in:
1 parent
5452405a81
commit
4fe1248aa8
1 file changed
+1
-1
@@ -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)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user