$maxTimeAllowed still used by tests, causing HHVM to fail
authorChad Horohoe <chadh@wikimedia.org>
Wed, 23 Apr 2014 21:13:44 +0000 (14:13 -0700)
committerSiebrand Mazeland <siebrand@kitano.nl>
Thu, 24 Apr 2014 09:08:25 +0000 (11:08 +0200)
Change-Id: Ib1e3bc564ae1524070cf392da6cb22ac368cfe11

maintenance/backupTextPass.inc

index a794750..7fca377 100644 (file)
@@ -31,6 +31,12 @@ require_once __DIR__ . '/backup.inc';
  */
 class TextPassDumper extends BackupDumper {
        public $prefetch = null;
+
+       // when we spend more than maxTimeAllowed seconds on this run, we continue
+       // processing until we write out the next complete page, then save output file(s),
+       // rename it/them and open new one(s)
+       public $maxTimeAllowed = 0; // 0 = no limit
+
        protected $input = "php://stdin";
        protected $history = WikiExporter::FULL;
        protected $fetchCount = 0;
@@ -67,10 +73,6 @@ class TextPassDumper extends BackupDumper {
 
        protected $xmlwriterobj = false;
 
-       // when we spend more than maxTimeAllowed seconds on this run, we continue
-       // processing until we write out the next complete page, then save output file(s),
-       // rename it/them and open new one(s)
-       protected $maxTimeAllowed = 0; // 0 = no limit
        protected $timeExceeded = false;
        protected $firstPageWritten = false;
        protected $lastPageWritten = false;