From c8b31c16a674e8b0616239a8cffef6a26ac0f276 Mon Sep 17 00:00:00 2001 From: Yu Kun Date: Sat, 24 Aug 2019 20:00:25 +0800 Subject: [PATCH] modify DescribeIndex bug Former-commit-id: 284bf1fc830ace11385fc96790eb9d525541295e --- cpp/src/db/meta/SqliteMetaImpl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cpp/src/db/meta/SqliteMetaImpl.cpp b/cpp/src/db/meta/SqliteMetaImpl.cpp index d0d6423688..99487c1b70 100644 --- a/cpp/src/db/meta/SqliteMetaImpl.cpp +++ b/cpp/src/db/meta/SqliteMetaImpl.cpp @@ -421,7 +421,7 @@ Status SqliteMetaImpl::DescribeTableIndex(const std::string &table_id, TableInde if (groups.size() == 1) { index.engine_type_ = std::get<0>(groups[0]); index.nlist_ = std::get<1>(groups[0]); - index.metric_type_ = std::get<2>(groups[0]); + index.metric_type_ = std::get<3>(groups[0]); } else { return Status::NotFound("Table " + table_id + " not found"); }