Fix xlog formula: ff000000 not ffffffff
authorEuler Taveira de Oliveira <[email protected]>
Sun, 27 Nov 2011 13:10:18 +0000 (08:10 -0500)
committerGreg Sabino Mullane <[email protected]>
Sun, 27 Nov 2011 13:10:18 +0000 (08:10 -0500)
See http://eulerto.blogspot.com/2011/11/understanding-wal-nomenclature.html

check_postgres.pl

index 273c75f5a727fd37083429d6bfd2930c9495eee5..2bfdd709f2a739430593f4296a6ff5498df51349 100755 (executable)
@@ -4702,7 +4702,7 @@ sub check_hot_standby_delay {
         next if ! defined $location;
 
         my ($x, $y) = split(/\//, $location);
-        $moffset = (hex("ffffffff") * hex($x)) + hex($y);
+        $moffset = (hex('ff000000') * hex($x)) + hex($y);
         $saved_db = $db if ! defined $saved_db;
     }
 
@@ -4722,12 +4722,12 @@ sub check_hot_standby_delay {
 
         if (defined $receive) {
             my ($a, $b) = split(/\//, $receive);
-            $s_rec_offset = (hex("ffffffff") * hex($a)) + hex($b);
+            $s_rec_offset = (hex('ff000000') * hex($a)) + hex($b);
         }
 
         if (defined $replay) {
             my ($a, $b) = split(/\//, $replay);
-            $s_rep_offset = (hex("ffffffff") * hex($a)) + hex($b);
+            $s_rep_offset = (hex('ff000000') * hex($a)) + hex($b);
         }
 
         $saved_db = $db if ! defined $saved_db;
@@ -9508,6 +9508,8 @@ Items not specifically attributed are by GSM (Greg Sabino Mullane).
   Use the full path when getting sequence information for same_schema.
     (Greg Sabino Mullane; reported by Cindy Wise)
 
+  Fix the formula for calculating xlog positions (Euler Taveira de Oliveira)
+
   Better ordering of output for bloat check - make indexes as important
     as tables (Greg Sabino Mullane; reported by Jens Wilke)