int blockNum = 0;
unsigned int c;
unsigned int count = 0;
+ unsigned int gcount = 0;
/*
* We handle the effective_io_concurrency...
*/
if (c & 01)
{
count++;
+ gcount++;
if (count == effective_io_concurrency)
{
posix_fadvise(fd, ((blockNum-count)*pageSize), count*pageSize, POSIX_FADV_WILLNEED);
if (count)
posix_fadvise(fd, ((blockNum-count)*pageSize), count*pageSize, POSIX_FADV_WILLNEED);
fclose(f);
+ elog(DEBUG1, "pgfadv_snapshot: loading %d blocks from relpath %s", gcount, filename);
break;
}
- return 0;
+ return gcount;
}
\ No newline at end of file