mirror of
https://gitee.com/milvus-io/milvus.git
synced 2026-01-07 19:31:51 +08:00
fix:fix incorrect rootPath for local storage mode (#46692)
#45959 Signed-off-by: luzhang <luzhang@zilliz.com> Co-authored-by: luzhang <luzhang@zilliz.com>
This commit is contained in:
parent
724598d231
commit
635bead131
@ -209,7 +209,12 @@ func InitRemoteChunkManager(params *paramtable.ComponentParam) error {
|
||||
cBucketName := C.CString(params.MinioCfg.BucketName.GetValue())
|
||||
cAccessKey := C.CString(params.MinioCfg.AccessKeyID.GetValue())
|
||||
cAccessValue := C.CString(params.MinioCfg.SecretAccessKey.GetValue())
|
||||
cRootPath := C.CString(params.MinioCfg.RootPath.GetValue())
|
||||
var cRootPath *C.char
|
||||
if params.CommonCfg.StorageType.GetValue() == "local" {
|
||||
cRootPath = C.CString(params.LocalStorageCfg.Path.GetValue())
|
||||
} else {
|
||||
cRootPath = C.CString(params.MinioCfg.RootPath.GetValue())
|
||||
}
|
||||
cStorageType := C.CString(params.CommonCfg.StorageType.GetValue())
|
||||
cIamEndPoint := C.CString(params.MinioCfg.IAMEndpoint.GetValue())
|
||||
cCloudProvider := C.CString(params.MinioCfg.CloudProvider.GetValue())
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user