diff options
author | Nathan Bossart <nathan@postgresql.org> | 2024-02-16 11:37:50 -0600 |
---|---|---|
committer | Nathan Bossart <nathan@postgresql.org> | 2024-02-16 11:37:50 -0600 |
commit | 5497daf3aa2ae6ec9d5097f25c40627f8c801de8 (patch) | |
tree | 7c6561e97ba100cfe7214c55560b4652495622cb /src/backend/storage/buffer | |
parent | d57b7cc3338e9d9aa1d7c5da1b25a17c5a72dcce (diff) | |
download | postgresql-5497daf3aa2ae6ec9d5097f25c40627f8c801de8.tar.gz postgresql-5497daf3aa2ae6ec9d5097f25c40627f8c801de8.zip |
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
Diffstat (limited to 'src/backend/storage/buffer')
-rw-r--r-- | src/backend/storage/buffer/bufmgr.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/backend/storage/buffer/bufmgr.c b/src/backend/storage/buffer/bufmgr.c index eb1ec3b86df..07575ef3129 100644 --- a/src/backend/storage/buffer/bufmgr.c +++ b/src/backend/storage/buffer/bufmgr.c @@ -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++) { |