Fix some notices caused by dumpBigScheduleToSmall, a=chris

Chris Pollett [2015-09-11 16:Sep:th]
Fix some notices caused by dumpBigScheduleToSmall, a=chris
Filename
src/executables/QueueServer.php
diff --git a/src/executables/QueueServer.php b/src/executables/QueueServer.php
index 95c400572..c8cb4600d 100755
--- a/src/executables/QueueServer.php
+++ b/src/executables/QueueServer.php
@@ -2029,7 +2029,6 @@ class QueueServer implements CrawlConstants, Join
             mkdir($dir);
             chmod($dir, 0777);
         }
-        $now = time();
         $day = floor($this->crawl_time/C\ONE_DAY) - 1;
             //want before all other schedules, so will be reloaded first
         $dir .= "/$day";
@@ -2037,10 +2036,6 @@ class QueueServer implements CrawlConstants, Join
             mkdir($dir);
             chmod($dir, 0777);
         }
-        //get rid of previous restart attempts, if present
-        if (!$for_reschedule) {
-            $this->db->unlinkRecursive($dir, false);
-        }
         $count = count($sites);
         $schedule_data = [];
         $schedule_data[self::SCHEDULE_TIME] = $this->crawl_time;
@@ -2054,8 +2049,8 @@ class QueueServer implements CrawlConstants, Join
                 $data_string = L\webencode(
                     gzcompress(serialize($schedule_data)));
                 $data_hash = L\crawlHash($data_string);
-                file_put_contents($dir."/At".$schedule_time."From127-0-0-1".
-                    "WithHash$data_hash.txt", $data_string);
+                file_put_contents($dir."/At" . $this->crawl_time .
+                    "From127-0-0-1WithHash$data_hash.txt", $data_string);
                 $data_string = "";
                 $schedule_data[self::TO_CRAWL] = [];
             }
ViewGit