diff options
author | Heikki Linnakangas <heikki.linnakangas@iki.fi> | 2012-06-24 22:14:31 +0300 |
---|---|---|
committer | Heikki Linnakangas <heikki.linnakangas@iki.fi> | 2012-06-24 22:14:31 +0300 |
commit | 7eb8c7851458eb88def80c290a4b5bc37cc321f3 (patch) | |
tree | 1091a5388f72831c28c97f7362955ff0ed55c038 /src | |
parent | 0687a26002c86e3115783d75f212358ef348525f (diff) | |
download | postgresql-7eb8c7851458eb88def80c290a4b5bc37cc321f3.tar.gz postgresql-7eb8c7851458eb88def80c290a4b5bc37cc321f3.zip |
I missed some references to xlogid/xrecoff in Win32-only code. Fix.
Diffstat (limited to 'src')
-rw-r--r-- | src/bin/pg_basebackup/pg_basebackup.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/bin/pg_basebackup/pg_basebackup.c b/src/bin/pg_basebackup/pg_basebackup.c index a66769871ec..a6fd3ae2040 100644 --- a/src/bin/pg_basebackup/pg_basebackup.c +++ b/src/bin/pg_basebackup/pg_basebackup.c @@ -1100,6 +1100,8 @@ BaseBackup(void) int r; #else DWORD status; + uint32 hi, + lo; #endif if (verbose) @@ -1147,12 +1149,13 @@ BaseBackup(void) * value directly in the variable, and then set the flag that says * it's there. */ - if (sscanf(xlogend, "%X/%X", &xlogendptr.xlogid, &xlogendptr.xrecoff) != 2) + if (sscanf(xlogend, "%X/%X", &hi, &lo) != 2) { fprintf(stderr, _("%s: could not parse xlog end position \"%s\"\n"), progname, xlogend); disconnect_and_exit(1); } + xlogendptr = ((uint64) hi) << 32 | lo; InterlockedIncrement(&has_xlogendptr); /* First wait for the thread to exit */ |