未验证 提交 008f24a7 编写于 作者: H HuangHua 提交者: GitHub

replace metaOptions with meta_options (#1979)

* replace metaOptions with meta_options
Signed-off-by: Nhuanghua <bruce.huang@hotmail.com>

* typo
Signed-off-by: Ngroot <yihua.mo@zilliz.com>
Co-authored-by: Ngroot <yihua.mo@zilliz.com>
上级 50ddc493
......@@ -44,8 +44,8 @@ MetaFactory::BuildOption(const std::string& path) {
}
meta::MetaPtr
MetaFactory::Build(const DBMetaOptions& metaOptions, const int& mode) {
std::string uri = metaOptions.backend_uri_;
MetaFactory::Build(const DBMetaOptions& meta_options, const int& mode) {
std::string uri = meta_options.backend_uri_;
utils::MetaUriInfo uri_info;
auto status = utils::ParseMetaUri(uri, uri_info);
......@@ -56,10 +56,10 @@ MetaFactory::Build(const DBMetaOptions& metaOptions, const int& mode) {
if (strcasecmp(uri_info.dialect_.c_str(), "mysql") == 0) {
LOG_ENGINE_INFO_ << "Using MySQL";
return std::make_shared<meta::MySQLMetaImpl>(metaOptions, mode);
return std::make_shared<meta::MySQLMetaImpl>(meta_options, mode);
} else if (strcasecmp(uri_info.dialect_.c_str(), "sqlite") == 0) {
LOG_ENGINE_INFO_ << "Using SQLite";
return std::make_shared<meta::SqliteMetaImpl>(metaOptions);
return std::make_shared<meta::SqliteMetaImpl>(meta_options);
} else {
LOG_ENGINE_ERROR_ << "Invalid dialect in URI: dialect = " << uri_info.dialect_;
throw InvalidArgumentException("URI dialect is not mysql / sqlite");
......
......@@ -25,7 +25,7 @@ class MetaFactory {
BuildOption(const std::string& path = "");
static meta::MetaPtr
Build(const DBMetaOptions& metaOptions, const int& mode);
Build(const DBMetaOptions& meta_options, const int& mode);
};
} // namespace engine
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册