Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit7eb8c78

Browse files
committed
I missed some references to xlogid/xrecoff in Win32-only code. Fix.
1 parent0687a26 commit7eb8c78

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
intr;
11011101
#else
11021102
DWORDstatus;
1103+
uint32hi,
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)

[8]ページ先頭

©2009-2025 Movatter.jp