mirror of https://github.com/milvus-io/milvus.git
[Fixup] error root path for catalog when using tikv (#28163)
Signed-off-by: chyezh <ye.zhen@zilliz.com>pull/28187/head
parent
f40fb01627
commit
86973a8871
|
@ -550,10 +550,13 @@ func (s *Server) initMeta(chunkManager storage.ChunkManager) error {
|
|||
s.watchClient = etcdkv.NewEtcdKV(s.etcdCli, Params.EtcdCfg.MetaRootPath.GetValue())
|
||||
metaType := Params.MetaStoreCfg.MetaStoreType.GetValue()
|
||||
log.Info("data coordinator connecting to metadata store", zap.String("metaType", metaType))
|
||||
metaRootPath := ""
|
||||
if metaType == util.MetaStoreTypeTiKV {
|
||||
s.kv = tikv.NewTiKV(s.tikvCli, Params.TiKVCfg.MetaRootPath.GetValue())
|
||||
metaRootPath = Params.TiKVCfg.MetaRootPath.GetValue()
|
||||
s.kv = tikv.NewTiKV(s.tikvCli, metaRootPath)
|
||||
} else if metaType == util.MetaStoreTypeEtcd {
|
||||
s.kv = etcdkv.NewEtcdKV(s.etcdCli, Params.EtcdCfg.MetaRootPath.GetValue())
|
||||
metaRootPath = Params.EtcdCfg.MetaRootPath.GetValue()
|
||||
s.kv = etcdkv.NewEtcdKV(s.etcdCli, metaRootPath)
|
||||
} else {
|
||||
return retry.Unrecoverable(fmt.Errorf("not supported meta store: %s", metaType))
|
||||
}
|
||||
|
@ -561,7 +564,7 @@ func (s *Server) initMeta(chunkManager storage.ChunkManager) error {
|
|||
|
||||
reloadEtcdFn := func() error {
|
||||
var err error
|
||||
catalog := datacoord.NewCatalog(s.kv, chunkManager.RootPath(), Params.EtcdCfg.MetaRootPath.GetValue())
|
||||
catalog := datacoord.NewCatalog(s.kv, chunkManager.RootPath(), metaRootPath)
|
||||
s.meta, err = newMeta(s.ctx, catalog, chunkManager)
|
||||
if err != nil {
|
||||
return err
|
||||
|
|
Loading…
Reference in New Issue