mirror of
https://github.com/postgres/postgres.git
synced 2025-06-26 12:21:12 +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:
@ -3915,7 +3915,7 @@ DropRelationsAllBuffers(SMgrRelation *smgr_reln, int nlocators)
|
||||
|
||||
/* sort the list of rlocators if necessary */
|
||||
if (use_bsearch)
|
||||
pg_qsort(locators, n, sizeof(RelFileLocator), rlocator_comparator);
|
||||
qsort(locators, n, sizeof(RelFileLocator), rlocator_comparator);
|
||||
|
||||
for (i = 0; i < NBuffers; i++)
|
||||
{
|
||||
@ -4269,7 +4269,7 @@ FlushRelationsAllBuffers(SMgrRelation *smgrs, int nrels)
|
||||
|
||||
/* sort the list of SMgrRelations if necessary */
|
||||
if (use_bsearch)
|
||||
pg_qsort(srels, nrels, sizeof(SMgrSortArray), rlocator_comparator);
|
||||
qsort(srels, nrels, sizeof(SMgrSortArray), rlocator_comparator);
|
||||
|
||||
for (i = 0; i < NBuffers; i++)
|
||||
{
|
||||
|
Reference in New Issue
Block a user