mirror of https://github.com/milvus-io/milvus.git
Fix delete session key with prefix (#28267)
Signed-off-by: jaime <yun.zhang@zilliz.com>pull/28274/head
parent
99350b1be4
commit
618c58db4e
|
@ -225,7 +225,7 @@ func CleanSession(metaPath string, etcdEndpoints []string, sessionSuffix []strin
|
|||
}
|
||||
|
||||
for _, key := range keys {
|
||||
_, _ = etcdCli.Delete(ctx, key, clientv3.WithPrefix())
|
||||
_, _ = etcdCli.Delete(ctx, key)
|
||||
}
|
||||
log.Info("clean sessions from etcd", zap.Any("keys", keys))
|
||||
return nil
|
||||
|
|
Loading…
Reference in New Issue