Use ksort() in getDeduplicationInfo for sanity
authorAaron Schulz <aschulz@wikimedia.org>
Thu, 19 Mar 2015 17:45:39 +0000 (10:45 -0700)
committerAaron Schulz <aschulz@wikimedia.org>
Thu, 19 Mar 2015 17:45:39 +0000 (10:45 -0700)
Change-Id: Id23cc987b3f1e23b35b0eedbfc5c9978774a0ebd

includes/jobqueue/Job.php

index 334d374..f8de0b5 100644 (file)
@@ -188,6 +188,8 @@ abstract class Job implements IJobSpecification {
                        unset( $info['params']['rootJobTimestamp'] );
                        // Likewise for jobs with different delay times
                        unset( $info['params']['jobReleaseTimestamp'] );
+                       // Queues pack and hash this array, so normalize the order
+                       ksort( $info['params'] );
                }
 
                return $info;