mirror of
https://github.com/postgres/postgres.git
synced 2025-07-12 21:01:52 +03:00
Remove unused 'cur_skey' argument from IndexScanOK()
Commit a78fcfb512
removed the last use of it.
Author: Hugo Zhang, Aleksander Alekseev
Reviewed-by: Daniel Gustafsson
Discussion: https://www.postgresql.org/message-id/NT0PR01MB129459E243721B954611938F9CDD2%40NT0PR01MB1294.CHNPR01.prod.partner.outlook.cn
This commit is contained in:
6
src/backend/utils/cache/catcache.c
vendored
6
src/backend/utils/cache/catcache.c
vendored
@ -1194,7 +1194,7 @@ InitCatCachePhase2(CatCache *cache, bool touch_index)
|
|||||||
* catalogs' indexes.
|
* catalogs' indexes.
|
||||||
*/
|
*/
|
||||||
static bool
|
static bool
|
||||||
IndexScanOK(CatCache *cache, ScanKey cur_skey)
|
IndexScanOK(CatCache *cache)
|
||||||
{
|
{
|
||||||
switch (cache->id)
|
switch (cache->id)
|
||||||
{
|
{
|
||||||
@ -1483,7 +1483,7 @@ SearchCatCacheMiss(CatCache *cache,
|
|||||||
|
|
||||||
scandesc = systable_beginscan(relation,
|
scandesc = systable_beginscan(relation,
|
||||||
cache->cc_indexoid,
|
cache->cc_indexoid,
|
||||||
IndexScanOK(cache, cur_skey),
|
IndexScanOK(cache),
|
||||||
NULL,
|
NULL,
|
||||||
nkeys,
|
nkeys,
|
||||||
cur_skey);
|
cur_skey);
|
||||||
@ -1803,7 +1803,7 @@ SearchCatCacheList(CatCache *cache,
|
|||||||
|
|
||||||
scandesc = systable_beginscan(relation,
|
scandesc = systable_beginscan(relation,
|
||||||
cache->cc_indexoid,
|
cache->cc_indexoid,
|
||||||
IndexScanOK(cache, cur_skey),
|
IndexScanOK(cache),
|
||||||
NULL,
|
NULL,
|
||||||
nkeys,
|
nkeys,
|
||||||
cur_skey);
|
cur_skey);
|
||||||
|
Reference in New Issue
Block a user