mirror of
https://github.com/postgres/postgres.git
synced 2025-11-09 06:21:09 +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:
@@ -326,7 +326,7 @@ end_heap_rewrite(RewriteState state)
|
||||
PageSetChecksumInplace(state->rs_buffer, state->rs_blockno);
|
||||
|
||||
smgrextend(RelationGetSmgr(state->rs_new_rel), MAIN_FORKNUM,
|
||||
state->rs_blockno, (char *) state->rs_buffer, true);
|
||||
state->rs_blockno, state->rs_buffer, true);
|
||||
}
|
||||
|
||||
/*
|
||||
@@ -692,7 +692,7 @@ raw_heap_insert(RewriteState state, HeapTuple tup)
|
||||
PageSetChecksumInplace(page, state->rs_blockno);
|
||||
|
||||
smgrextend(RelationGetSmgr(state->rs_new_rel), MAIN_FORKNUM,
|
||||
state->rs_blockno, (char *) page, true);
|
||||
state->rs_blockno, page, true);
|
||||
|
||||
state->rs_blockno++;
|
||||
state->rs_buffer_valid = false;
|
||||
|
||||
Reference in New Issue
Block a user