Add a wfWaitForSlaves() call at the end of sql.php
authorReedy <reedy@wikimedia.org>
Mon, 25 Feb 2013 23:57:31 +0000 (23:57 +0000)
committerReedy <reedy@wikimedia.org>
Mon, 25 Feb 2013 23:57:31 +0000 (23:57 +0000)
Useful if you're doing queries over many wikis (wmf usage) that might
induce some repllag

Change-Id: I9818f1763d3330d0b96d9bb9c192a957293b6a5b

maintenance/sql.php

index ef1ec54..1169990 100644 (file)
@@ -101,6 +101,7 @@ class MwSql extends Maintenance {
                                $this->error( $e, $doDie );
                        }
                }
+               wfWaitForSlaves();
        }
 
        /**