repmgrd: fix XLogRecPtr conversion function

This commit is contained in:
Ian Barwick
2017-01-11 14:48:17 +09:00
parent a1a1d64e1f
commit 67e8ca73b5
2 changed files with 4 additions and 2 deletions

View File

@@ -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)

View File

@@ -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