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

Commitbf9a55c

Browse files
committed
pg_checksums: Fix data type
Segment numbers should be int, not BlockNumber (see also buffile.c).Likely no harm, but better for consistency.
1 parent22bd3cb commitbf9a55c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎src/bin/pg_checksums/pg_checksums.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ skipfile(const char *fn)
192192
}
193193

194194
staticvoid
195-
scan_file(constchar*fn,BlockNumbersegmentno)
195+
scan_file(constchar*fn,intsegmentno)
196196
{
197197
PGAlignedBlockbuf;
198198
PageHeaderheader= (PageHeader)buf.data;
@@ -370,7 +370,7 @@ scan_directory(const char *basedir, const char *subdir, bool sizeonly)
370370
charfnonly[MAXPGPATH];
371371
char*forkpath,
372372
*segmentpath;
373-
BlockNumbersegmentno=0;
373+
intsegmentno=0;
374374

375375
if (skipfile(de->d_name))
376376
continue;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp