From 6b49d3427624f2f520632b0030aba25b334699e9 Mon Sep 17 00:00:00 2001 From: shmiwy Date: Wed, 10 Jan 2024 16:24:57 +0800 Subject: [PATCH] make `shareinput_Xslice_dsm_handle_ptr` and `shareinput_Xslice_hash` non-static Some extension need to use these variables, so it's not necessary to set them to static here. --- src/backend/executor/nodeShareInputScan.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/backend/executor/nodeShareInputScan.c b/src/backend/executor/nodeShareInputScan.c index 75eada194ba..1bb05edf674 100644 --- a/src/backend/executor/nodeShareInputScan.c +++ b/src/backend/executor/nodeShareInputScan.c @@ -118,7 +118,7 @@ typedef struct shareinput_Xslice_state } shareinput_Xslice_state; /* shared memory hash table holding 'shareinput_Xslice_state' entries */ -static HTAB *shareinput_Xslice_hash = NULL; +HTAB *shareinput_Xslice_hash = NULL; /* * The tuplestore files for all share input scans are held in one SharedFileSet. @@ -135,7 +135,7 @@ static HTAB *shareinput_Xslice_hash = NULL; * are reference counted separately, and we clean up the files backing each * individual ShareInputScan whenever its reference count reaches zero. */ -static dsm_handle *shareinput_Xslice_dsm_handle_ptr; +dsm_handle *shareinput_Xslice_dsm_handle_ptr; static SharedFileSet *shareinput_Xslice_fileset; /*