filer store YDB: fix upsert with TTL (#6469)
This commit is contained in:
@@ -22,7 +22,7 @@ type FileMetas []FileMeta
|
|||||||
func (fm *FileMeta) queryParameters(ttlSec int32) *table.QueryParameters {
|
func (fm *FileMeta) queryParameters(ttlSec int32) *table.QueryParameters {
|
||||||
var expireAtValue types.Value
|
var expireAtValue types.Value
|
||||||
if ttlSec > 0 {
|
if ttlSec > 0 {
|
||||||
expireAtValue = types.Uint32Value(uint32(ttlSec))
|
expireAtValue = types.OptionalValue(types.Uint32Value(uint32(ttlSec)))
|
||||||
} else {
|
} else {
|
||||||
expireAtValue = types.NullValue(types.TypeUint32)
|
expireAtValue = types.NullValue(types.TypeUint32)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user