Merge "Make Maintenance::commitTransaction() avoid using deprecated method"
[lhc/web/wiklou.git] / maintenance / doMaintenance.php
index 1272ca2..95bd089 100644 (file)
@@ -102,6 +102,10 @@ $maintenance->setConfig( ConfigFactory::getDefaultInstance()->makeConfig( 'main'
 // Sanity-check required extensions are installed
 $maintenance->checkRequiredExtensions();
 
+// A good time when no DBs have writes pending is around lag checks.
+// This avoids having long running scripts just OOM and lose all the updates.
+$maintenance->setTriggers();
+
 // Do the work
 $maintenance->execute();