feat(db): add where condition in files_to_merege

Former-commit-id: df201faf70298a074ac794fb4e4964b6b2426a69
pull/191/head
Xu Peng 2019-04-18 17:12:01 +08:00
parent 44f5d3e7eb
commit 8d5ef3fb27
1 changed files with 3 additions and 3 deletions

View File

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