mirror of
https://github.com/postgres/postgres.git
synced 2025-08-05 07:41:25 +03:00
pg_checksums: Fix data type
Segment numbers should be int, not BlockNumber (see also buffile.c). Likely no harm, but better for consistency.
This commit is contained in:
@@ -192,7 +192,7 @@ skipfile(const char *fn)
|
|||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
scan_file(const char *fn, BlockNumber segmentno)
|
scan_file(const char *fn, int segmentno)
|
||||||
{
|
{
|
||||||
PGAlignedBlock buf;
|
PGAlignedBlock buf;
|
||||||
PageHeader header = (PageHeader) buf.data;
|
PageHeader header = (PageHeader) buf.data;
|
||||||
@@ -370,7 +370,7 @@ scan_directory(const char *basedir, const char *subdir, bool sizeonly)
|
|||||||
char fnonly[MAXPGPATH];
|
char fnonly[MAXPGPATH];
|
||||||
char *forkpath,
|
char *forkpath,
|
||||||
*segmentpath;
|
*segmentpath;
|
||||||
BlockNumber segmentno = 0;
|
int segmentno = 0;
|
||||||
|
|
||||||
if (skipfile(de->d_name))
|
if (skipfile(de->d_name))
|
||||||
continue;
|
continue;
|
||||||
|
Reference in New Issue
Block a user