diff --git a/HISTORY b/HISTORY index 731b3deb..39eecf02 100644 --- a/HISTORY +++ b/HISTORY @@ -21,3 +21,4 @@ Correct freeing of memory from first_wal_segment (Daniel) Allow creating recovery.conf file with a password (Daniel) Inform when STANDBY CLONE sees an unused config file (Daniel) + Use 64-bit computation for WAL apply_lag (Greg) diff --git a/repmgrd.c b/repmgrd.c index a4cfdbc2..1796a1b2 100644 --- a/repmgrd.c +++ b/repmgrd.c @@ -450,7 +450,7 @@ walLocationToBytes(char *wal_location) log_err("wrong log location format: %s\n", wal_location); return 0; } - return ((xlogid * 16 * 1024 * 1024 * 255) + xrecoff); + return (( (long long) xlogid * 16 * 1024 * 1024 * 255) + xrecoff); }