diff --git a/HISTORY b/HISTORY index 2c7873a6..b968ae74 100644 --- a/HISTORY +++ b/HISTORY @@ -1,6 +1,8 @@ 3.3.1 2017-01- - repmgrd: revent invalid apply lag value being written to the + repmgrd: prevent invalid apply lag value being written to the monitoring table (Ian) + repmgrd: fix error in XLogRecPtr conversion when calculating + monitoring statistics (Ian) 3.3 2016-12-27 repmgr: always log to STDERR even if log facility defined (Ian) diff --git a/repmgrd.c b/repmgrd.c index a9fd5b54..9e9da664 100644 --- a/repmgrd.c +++ b/repmgrd.c @@ -2339,7 +2339,7 @@ lsn_to_xlogrecptr(char *lsn, bool *format_ok) if (format_ok != NULL) *format_ok = true; - return (((XLogRecPtr) xlogid * 16 * 1024 * 1024 * 255) + xrecoff); + return (XLogRecPtr) ((uint64) xlogid) << 32 | (uint64) xrecoff; } void