From c14fdcd2e3c2e5afca0024f3190d0ca86e979772 Mon Sep 17 00:00:00 2001 From: Ben Roberts Date: Wed, 11 Jan 2012 00:50:29 +0000 Subject: [PATCH] Change job status ordering to account for time desync between nodes --- source/lib/RippingCluster/JobStatus.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/lib/RippingCluster/JobStatus.class.php b/source/lib/RippingCluster/JobStatus.class.php index eab70cc..d1500d7 100644 --- a/source/lib/RippingCluster/JobStatus.class.php +++ b/source/lib/RippingCluster/JobStatus.class.php @@ -61,7 +61,7 @@ class RippingCluster_JobStatus { $statuses = array(); $database = RippingCluster_Main::instance()->database(); - foreach ($database->selectList('SELECT * FROM job_status WHERE job_id=:job_id ORDER BY mtime ASC', array( + foreach ($database->selectList('SELECT * FROM job_status WHERE job_id=:job_id ORDER BY id ASC', array( array('name' => 'job_id', 'value' => $job->id(), 'type' => PDO::PARAM_INT), )) as $row) { $statuses[] = RippingCluster_JobStatus::fromDatabaseRow($row);