Content-Length: 285353 | pFad | http://github.com/postgrespro/postgres/commit/c99c7a4871187a8bcf717147ff08e05a49e678d5

84 Remove NOT_USED BufFileTellBlock() from buffile.c · postgrespro/postgres@c99c7a4 · GitHub
Skip to content

Commit c99c7a4

Browse files
committed
Remove NOT_USED BufFileTellBlock() from buffile.c
This routine has been marked as NOT_USED since 20ad43b from 2000, and a patch is planned to switch the logtape/tuplestore APIs to rely on int64 rather than long for the block nunbers, which is more portable. Keeping it is more confusing than anything at this stage, so let's get rid of it entirely. Thanks for Heikki Linnakangas for the poke on this one. Discussion: https://postgr.es/m/5047be8c-7ee6-4dd5-af76-6c916c3103b4@iki.fi
1 parent 3af0d17 commit c99c7a4

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

src/backend/storage/file/buffile.c

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -856,24 +856,6 @@ BufFileSeekBlock(BufFile *file, long blknum)
856856
SEEK_SET);
857857
}
858858

859-
#ifdef NOT_USED
860-
/*
861-
* BufFileTellBlock --- block-oriented tell
862-
*
863-
* Any fractional part of a block in the current seek position is ignored.
864-
*/
865-
long
866-
BufFileTellBlock(BufFile *file)
867-
{
868-
long blknum;
869-
870-
blknum = (file->curOffset + file->pos) / BLCKSZ;
871-
blknum += file->curFile * BUFFILE_SEG_SIZE;
872-
return blknum;
873-
}
874-
875-
#endif
876-
877859
/*
878860
* Return the current fileset based BufFile size.
879861
*

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres/commit/c99c7a4871187a8bcf717147ff08e05a49e678d5

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy