mirror of
https://gitee.com/milvus-io/milvus.git
synced 2024-12-02 11:59:00 +08:00
Refresh etcd source config with Searializable option (#23954)
Signed-off-by: Congqi Xia <congqi.xia@zilliz.com>
This commit is contained in:
parent
f6d3b4f7ac
commit
de4b4dafef
@ -133,7 +133,7 @@ func (es *EtcdSource) refreshConfigurations() error {
|
|||||||
|
|
||||||
ctx, cancel := context.WithTimeout(es.ctx, ReadConfigTimeout)
|
ctx, cancel := context.WithTimeout(es.ctx, ReadConfigTimeout)
|
||||||
defer cancel()
|
defer cancel()
|
||||||
response, err := es.etcdCli.Get(ctx, prefix, clientv3.WithPrefix())
|
response, err := es.etcdCli.Get(ctx, prefix, clientv3.WithPrefix(), clientv3.WithSerializable())
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user