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

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