From e05cfe194e9161d53e9309d97fb6ca8e9d1deb48 Mon Sep 17 00:00:00 2001 From: "cai.zhang" Date: Thu, 19 May 2022 17:25:56 +0800 Subject: [PATCH] Fix data race for indexcoord test (#17057) Signed-off-by: Cai.Zhang --- internal/indexnode/indexnode_mock.go | 1 - 1 file changed, 1 deletion(-) diff --git a/internal/indexnode/indexnode_mock.go b/internal/indexnode/indexnode_mock.go index a53e9ef689..f902fa0fbd 100644 --- a/internal/indexnode/indexnode_mock.go +++ b/internal/indexnode/indexnode_mock.go @@ -183,7 +183,6 @@ func (inm *Mock) Register() error { if inm.Err { return errors.New("IndexNode register failed") } - Params.Init() inm.etcdKV = etcdkv.NewEtcdKV(inm.etcdCli, Params.EtcdCfg.MetaRootPath) if err := inm.etcdKV.RemoveWithPrefix("session/" + typeutil.IndexNodeRole); err != nil { return err