From ebb4cedeb794932e0bc7e8506a0b4553500e3d79 Mon Sep 17 00:00:00 2001 From: groot Date: Thu, 5 Dec 2019 03:32:42 -0600 Subject: [PATCH] #696 metric_type changed from IP to L2 (#710) * #670 Random failure of unittest db_test::SEARCH_TEST * add an important log * add an important log * add an important log * #674 server down in stability test * add more log * remove log * #696 metric_type changed from IP to L2 --- CHANGELOG.md | 1 + core/src/db/meta/MySQLMetaImpl.cpp | 2 -- core/src/db/meta/SqliteMetaImpl.cpp | 4 +--- 3 files changed, 2 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index bc9322e7..850a2710 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -53,6 +53,7 @@ Please mark all change in change log and use the ticket from JIRA. - \#668 - Update badge of README - \#670 - Random failure of unittest db_test::SEARCH_TEST - \#674 - Server down in stability test +- \#696 - Metric_type changed from IP to L2 - \#705 - Fix search SQ8H crash without GPU resource ## Feature diff --git a/core/src/db/meta/MySQLMetaImpl.cpp b/core/src/db/meta/MySQLMetaImpl.cpp index 5072df9c..51a642aa 100644 --- a/core/src/db/meta/MySQLMetaImpl.cpp +++ b/core/src/db/meta/MySQLMetaImpl.cpp @@ -1138,8 +1138,6 @@ MySQLMetaImpl::DropTableIndex(const std::string& table_id) { // set table index type to raw dropTableIndexQuery << "UPDATE " << META_TABLES << " SET engine_type = " << std::to_string(DEFAULT_ENGINE_TYPE) - << " ,nlist = " << std::to_string(DEFAULT_NLIST) - << " ,metric_type = " << std::to_string(DEFAULT_METRIC_TYPE) << " WHERE table_id = " << mysqlpp::quote << table_id << ";"; ENGINE_LOG_DEBUG << "MySQLMetaImpl::DropTableIndex: " << dropTableIndexQuery.str(); diff --git a/core/src/db/meta/SqliteMetaImpl.cpp b/core/src/db/meta/SqliteMetaImpl.cpp index 6a525d27..edd8187b 100644 --- a/core/src/db/meta/SqliteMetaImpl.cpp +++ b/core/src/db/meta/SqliteMetaImpl.cpp @@ -733,9 +733,7 @@ SqliteMetaImpl::DropTableIndex(const std::string& table_id) { //set table index type to raw ConnectorPtr->update_all( set( - c(&TableSchema::engine_type_) = DEFAULT_ENGINE_TYPE, - c(&TableSchema::nlist_) = DEFAULT_NLIST, - c(&TableSchema::metric_type_) = DEFAULT_METRIC_TYPE), + c(&TableSchema::engine_type_) = DEFAULT_ENGINE_TYPE), where( c(&TableSchema::table_id_) == table_id)); -- GitLab