Fixed slave check when the job type is not specified.
authorAaron Schulz <aschulz@wikimedia.org>
Sun, 27 Jan 2013 03:09:33 +0000 (19:09 -0800)
committerAaron Schulz <aschulz@wikimedia.org>
Sun, 27 Jan 2013 03:09:33 +0000 (19:09 -0800)
Change-Id: I6bee31d149330ead537b9deebb57294f12ce9e02

maintenance/runJobs.php

index 8d2819d..85b0993 100644 (file)
@@ -101,7 +101,7 @@ class RunJobs extends Maintenance {
                                        break;
                                }
                                // Don't let any slaves/backups fall behind...
-                               $group->get( $type )->waitForBackups();
+                               $group->get( $job->getType() )->waitForBackups();
                        }
                } while ( $job ); // stop when there are no jobs
        }