Skip to content

Commit

Permalink
mxqsub: Add jobs to the group with greatest group_id when reusing groups
Browse files Browse the repository at this point in the history
  • Loading branch information
mariux committed Aug 26, 2015
1 parent 79fcd63 commit 296af7d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mxqsub.c
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ static int load_group_id(struct mx_mysql *mysql, struct mxq_group *g)
" AND job_time = ?"
" AND group_priority = ?"
" AND group_status = 0"
" ORDER BY group_id "
" ORDER BY group_id DESC"
" LIMIT 1");
if (!stmt) {
mx_log_err("mx_mysql_statement_prepare(): %m");
Expand Down

0 comments on commit 296af7d

Please sign in to comment.