Update base_param (#13863)

Signed-off-by: yudong.cai <yudong.cai@zilliz.com>
pull/13881/head
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
1 changed files with 3 additions and 2 deletions

View File

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