mirror of https://github.com/milvus-io/milvus.git
fix: lifeTime not released in time (#36093)
https://github.com/milvus-io/milvus/issues/36092 Signed-off-by: fengjun2016 <jornfeng@gmail.com>pull/36014/head^2
parent
30a99b66c1
commit
8787e65b1f
|
@ -90,9 +90,11 @@ func (w *walAccesserImpl) Txn(ctx context.Context, opts TxnOption) (Txn, error)
|
|||
}
|
||||
|
||||
if opts.VChannel == "" {
|
||||
w.lifetime.Done()
|
||||
return nil, status.NewInvaildArgument("vchannel is required")
|
||||
}
|
||||
if opts.Keepalive < 1*time.Millisecond {
|
||||
w.lifetime.Done()
|
||||
return nil, status.NewInvaildArgument("ttl must be greater than or equal to 1ms")
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue