Skip to content

Commit 7eb8c78

Browse files
committed
I missed some references to xlogid/xrecoff in Win32-only code. Fix.
1 parent 0687a26 commit 7eb8c78

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/bin/pg_basebackup/pg_basebackup.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1100,6 +1100,8 @@ BaseBackup(void)
11001100
int r;
11011101
#else
11021102
DWORD status;
1103+
uint32 hi,
1104+
lo;
11031105
#endif
11041106

11051107
if (verbose)
@@ -1147,12 +1149,13 @@ BaseBackup(void)
11471149
* value directly in the variable, and then set the flag that says
11481150
* it's there.
11491151
*/
1150-
if (sscanf(xlogend, "%X/%X", &xlogendptr.xlogid, &xlogendptr.xrecoff) != 2)
1152+
if (sscanf(xlogend, "%X/%X", &hi, &lo) != 2)
11511153
{
11521154
fprintf(stderr, _("%s: could not parse xlog end position \"%s\"\n"),
11531155
progname, xlogend);
11541156
disconnect_and_exit(1);
11551157
}
1158+
xlogendptr = ((uint64) hi) << 32 | lo;
11561159
InterlockedIncrement(&has_xlogendptr);
11571160

11581161
/* First wait for the thread to exit */

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy