提交 8ca2d52b 编写于 作者: G groot

fix mysql bug

上级 0b3f7e15
......@@ -1799,7 +1799,7 @@ MySQLMetaImpl::CleanUpFilesWithTTL(uint64_t seconds, CleanUpFilter* filter) {
}
mysqlpp::Query query = connectionPtr->query();
query << "SELECT id, table_id, file_id, date"
query << "SELECT id, table_id, file_id, file_type, date"
<< " FROM " << META_TABLEFILES << " WHERE file_type IN ("
<< std::to_string(TableFileSchema::TO_DELETE) << "," << std::to_string(TableFileSchema::BACKUP) << ")"
<< " AND updated_time < " << std::to_string(now - seconds * US_PS) << ";";
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册