From 8d5ef3fb27761ae186a34713383611e2fe0937b4 Mon Sep 17 00:00:00 2001 From: Xu Peng Date: Thu, 18 Apr 2019 17:12:01 +0800 Subject: [PATCH] feat(db): add where condition in files_to_merege Former-commit-id: df201faf70298a074ac794fb4e4964b6b2426a69 --- cpp/src/db/DBMetaImpl.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cpp/src/db/DBMetaImpl.cpp b/cpp/src/db/DBMetaImpl.cpp index 4046c01ab0..2dbe8cda4c 100644 --- a/cpp/src/db/DBMetaImpl.cpp +++ b/cpp/src/db/DBMetaImpl.cpp @@ -205,9 +205,9 @@ Status DBMetaImpl::files_to_merge(const std::string& group_id, &GroupFileSchema::file_id, &GroupFileSchema::file_type, &GroupFileSchema::rows, - &GroupFileSchema::date)); - /* where(is_equal(&GroupFileSchema::file_type, GroupFileSchema::RAW) && */ - /* is_equal(&GroupFileSchema::group_id, group_id))); */ + &GroupFileSchema::date), + where(c(&GroupFileSchema::file_type) == (int)GroupFileSchema::RAW and + c(&GroupFileSchema::group_id) == group_id)); GroupSchema group_info; group_info.group_id = group_id;