diff --git a/CHANGELOG.md b/CHANGELOG.md index bc9322e7c0..850a271008 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 5072df9cad..51a642aa11 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 6a525d27d2..edd8187ba9 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));