From b4eec4dd1714801318922186e0e111a113e26360 Mon Sep 17 00:00:00 2001 From: Magnus Hagander Date: Thu, 26 Jul 2007 14:57:14 +0000 Subject: [PATCH] Rename sync_timestamp for website to web_sync_timestamp, so it doesn't conflict with the one on the ftp site. git-svn-id: https://pgweb.postgresql.org/svn/trunk@1702 8f5c7a92-453e-0410-a47f-ad33c8a6b003 --- README | 4 ++-- automirror.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README b/README index dab8427..3c43726 100644 --- a/README +++ b/README @@ -20,14 +20,14 @@ The automatic mirror systems works like this, in a few short points: runs every 5 minutes (at least) to verify the currentness of the different mirrors. -* This script connects to the master server and fetches /sync_timestamp. If +* This script connects to the master server and fetches /web_sync_timestamp. If it cannot do this (master is down) it will send an error message and skip any further processing. This means that if the master goes down, we no longer update the other servers. In the future, we might want to keep scanning for servers that are down, but skip checking the actual timestamp. * After this, it connects in sequence to each listed DNS server, and fetches - /sync_timestamp. If this fails, or if sync_timestamp is too far off from + /web_sync_timestamp. If this fails, or if web_sync_timestamp is too far off from the master servers, the server will be disabled (in the database). Likewise, if the server was down and is now current, it will be re-enabled. diff --git a/automirror.php b/automirror.php index cc3401b..1398ce8 100644 --- a/automirror.php +++ b/automirror.php @@ -162,7 +162,7 @@ } - $q = "GET /sync_timestamp HTTP/1.0\nHost: " . $this->_host . "\nUser-Agent: pgautomirror/0\n\n"; + $q = "GET /web_sync_timestamp HTTP/1.0\nHost: " . $this->_host . "\nUser-Agent: pgautomirror/0\n\n"; if (!fwrite($fp, $q)) { $this->_log->Log('Failed to write network data to ' . $this->_ip); fclose($fp); -- 2.39.5