mirror of
https://github.com/postgres/postgres.git
synced 2025-07-30 11:03:19 +03:00
Replace calls to pg_qsort() with the qsort() macro.
Calls to this function might give the impression that pg_qsort() is somehow different than qsort(), when in fact there is a qsort() macro in port.h that expands all in-tree uses to pg_qsort(). Reviewed-by: Mats Kindahl Discussion: https://postgr.es/m/CA%2B14426g2Wa9QuUpmakwPxXFWG_1FaY0AsApkvcTBy-YfS6uaw%40mail.gmail.com
This commit is contained in:
@ -346,8 +346,8 @@ apw_load_buffers(void)
|
||||
FreeFile(file);
|
||||
|
||||
/* Sort the blocks to be loaded. */
|
||||
pg_qsort(blkinfo, num_elements, sizeof(BlockInfoRecord),
|
||||
apw_compare_blockinfo);
|
||||
qsort(blkinfo, num_elements, sizeof(BlockInfoRecord),
|
||||
apw_compare_blockinfo);
|
||||
|
||||
/* Populate shared memory state. */
|
||||
apw_state->block_info_handle = dsm_segment_handle(seg);
|
||||
|
Reference in New Issue
Block a user