mirror of
https://gitee.com/milvus-io/milvus.git
synced 2026-01-07 19:31:51 +08:00
Fix delete session key with prefix (#28267)
Signed-off-by: jaime <yun.zhang@zilliz.com>
This commit is contained in:
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…
x
Reference in New Issue
Block a user