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

Commitc99c7a4

Browse files
committed
Remove NOT_USED BufFileTellBlock() from buffile.c
This routine has been marked as NOT_USED since20ad43b from 2000,and a patch is planned to switch the logtape/tuplestore APIs to rely onint64 rather than long for the block nunbers, which is more portable.Keeping it is more confusing than anything at this stage, so let's getrid 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 parent3af0d17 commitc99c7a4

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-
#ifdefNOT_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-
longblknum;
869-
870-
blknum= (file->curOffset+file->pos) /BLCKSZ;
871-
blknum+=file->curFile*BUFFILE_SEG_SIZE;
872-
returnblknum;
873-
}
874-
875-
#endif
876-
877859
/*
878860
* Return the current fileset based BufFile size.
879861
*

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp