8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 23b56d1 commit 9654c32Copy full SHA for 9654c32
ptrack.c
@@ -394,7 +394,7 @@ ptrack_filelist_getnext(PtScanCtx * ctx)
394
ListCell *cell;
395
char *fullpath;
396
struct stat fst;
397
- off_t rel_st_size = 0;
397 8000 code>
+ uint32_t rel_st_size = 0;
398
399
get_next:
400
@@ -444,16 +444,16 @@ ptrack_filelist_getnext(PtScanCtx * ctx)
444
goto get_next;
445
}
446
447
- if (fst.st_size == 0)
+ rel_st_size = fst.st_size;
448
+
449
+ if (rel_st_size == 0)
450
{
451
elog(DEBUG3, "ptrack: skip empty file %s", fullpath);
452
453
/* But try the next one */
454
455
456
- rel_st_size = fst.st_size;
-
457
if (pfl->segno > 0)
458
459
ctx->relsize = pfl->segno * RELSEG_SIZE + rel_st_size / BLCKSZ;
0 commit comments