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:
zhagnlu 2025-12-31 12:23:22 +08:00 committed by GitHub
parent 724598d231
commit 635bead131
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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())