提交 ba36d18d 编写于 作者: S shengjh 提交者: Jin Hai

Fix mysqlmetaimpl (#869)

* *fix mysqlMetaImpl Initialize failed create directory

* *style: format code

* *style: format code

* *style: format code

* *style: format code

* *fix: sqliteMetaImpl Initialize failed create directory

* add empty line to trigger CI
上级 397a757f
......@@ -254,7 +254,7 @@ MySQLMetaImpl::Initialize() {
if (!ret) {
std::string msg = "Failed to create db directory " + options_.path_;
ENGINE_LOG_ERROR << msg;
return Status(DB_META_TRANSACTION_FAILED, msg);
throw Exception(DB_META_TRANSACTION_FAILED, msg);
}
}
......
......@@ -143,7 +143,7 @@ SqliteMetaImpl::Initialize() {
if (!ret) {
std::string msg = "Failed to create db directory " + options_.path_;
ENGINE_LOG_ERROR << msg;
return Status(DB_INVALID_PATH, msg);
throw Exception(DB_INVALID_PATH, msg);
}
}
......
......@@ -40,6 +40,7 @@ static constexpr int64_t INSERT_LOOP = 1000;
static constexpr int64_t SECONDS_EACH_HOUR = 3600;
static constexpr int64_t DAY_SECONDS = 24 * 60 * 60;
milvus::engine::meta::TableSchema
BuildTableSchema() {
milvus::engine::meta::TableSchema table_info;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册