mirror of
https://gitee.com/milvus-io/milvus.git
synced 2026-01-03 01:12:25 +08:00
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
This commit is contained in:
parent
397a757f6f
commit
ba36d18d10
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user