Update base_param (#13863)

Signed-off-by: yudong.cai <yudong.cai@zilliz.com>
This commit is contained in:
Cai Yudong 2021-12-21 15:53:51 +08:00 committed by GitHub
parent 4b54710466
commit fe4830046c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -13,6 +13,7 @@ package paramtable
import ( import (
"os" "os"
"path"
"strings" "strings"
"sync" "sync"
@ -99,7 +100,7 @@ func (p *BaseParamTable) initMetaRootPath() {
if err != nil { if err != nil {
panic(err) panic(err)
} }
p.MetaRootPath = rootPath + "/" + subPath p.MetaRootPath = path.Join(rootPath, subPath)
} }
func (p *BaseParamTable) initKvRootPath() { func (p *BaseParamTable) initKvRootPath() {
@ -111,5 +112,5 @@ func (p *BaseParamTable) initKvRootPath() {
if err != nil { if err != nil {
panic(err) panic(err)
} }
p.KvRootPath = rootPath + "/" + subPath p.KvRootPath = path.Join(rootPath, subPath)
} }