mirror of
https://github.com/postgres/postgres.git
synced 2025-06-16 06:01:02 +03:00
Update types in smgr API
Change data buffer to void *, from char *, and add const where
appropriate. This makes it match the File API (see also
2d4f1ba6cf
) and stdio.
Discussion: https://www.postgresql.org/message-id/flat/11dda853-bb5b-59ba-a746-e168b1ce4bdb%40enterprisedb.com
This commit is contained in:
@ -1003,7 +1003,7 @@ ReadBuffer_common(SMgrRelation smgr, char relpersistence, ForkNumber forkNum,
|
||||
/* new buffers are zero-filled */
|
||||
MemSet((char *) bufBlock, 0, BLCKSZ);
|
||||
/* don't set checksum for all-zero page */
|
||||
smgrextend(smgr, forkNum, blockNum, (char *) bufBlock, false);
|
||||
smgrextend(smgr, forkNum, blockNum, bufBlock, false);
|
||||
|
||||
pgstat_count_io_op(io_object, io_context, IOOP_EXTEND);
|
||||
|
||||
@ -1032,7 +1032,7 @@ ReadBuffer_common(SMgrRelation smgr, char relpersistence, ForkNumber forkNum,
|
||||
else
|
||||
INSTR_TIME_SET_ZERO(io_start);
|
||||
|
||||
smgrread(smgr, forkNum, blockNum, (char *) bufBlock);
|
||||
smgrread(smgr, forkNum, blockNum, bufBlock);
|
||||
|
||||
pgstat_count_io_op(io_object, io_context, IOOP_READ);
|
||||
|
||||
|
Reference in New Issue
Block a user