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:
shengjh 2020-01-02 17:32:41 +08:00 committed by Jin Hai
parent 397a757f6f
commit ba36d18d10
3 changed files with 3 additions and 2 deletions

View File

@ -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);
}
}

View File

@ -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);
}
}

View File

@ -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;