Skip to content
Snippets Groups Projects
Commit 90471db8 authored by Marshall Garey's avatar Marshall Garey Committed by Alejandro Sanchez
Browse files

Make archive job sql query consistent with purge.

Bug 6033.
parent ddd49896
No related branches found
No related tags found
No related merge requests found
...@@ -3135,7 +3135,7 @@ static uint32_t _archive_table(purge_type_t type, mysql_conn_t *mysql_conn, ...@@ -3135,7 +3135,7 @@ static uint32_t _archive_table(purge_type_t type, mysql_conn_t *mysql_conn,
break; break;
case PURGE_JOB: case PURGE_JOB:
query = xstrdup_printf("select %s from \"%s_%s\" where " query = xstrdup_printf("select %s from \"%s_%s\" where "
"time_submit < %ld && time_end != 0 " "time_submit <= %ld && time_end != 0 "
"order by time_submit asc LIMIT %d", "order by time_submit asc LIMIT %d",
cols, cluster_name, job_table, cols, cluster_name, job_table,
period_end, MAX_PURGE_LIMIT); period_end, MAX_PURGE_LIMIT);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment