MCPcopy Create free account
hub / github.com/apache/cloudberry / SessionState_Init

Function SessionState_Init

src/backend/utils/session_state.c:277–294  ·  view source on GitHub ↗

Initialize the SessionState for current session */

Source from the content-addressed store, hash-verified

275
276/* Initialize the SessionState for current session */
277void
278SessionState_Init()
279{
280 Assert(NULL == MySessionState);
281
282 if (INVALID_SESSION_ID == gp_session_id)
283 {
284 return;
285 }
286
287 Assert(!sessionStateInited);
288
289 MySessionState = SessionState_Acquire(gp_session_id);
290
291 Assert(NULL != MySessionState);
292
293 sessionStateInited = true;
294}
295
296/* Shutdown the SessionState for current session */
297void

Callers 4

InitPostgresFunction · 0.85
AcquireSessionStateFunction · 0.85
AcquireSessionStateFunction · 0.85

Calls 1

SessionState_AcquireFunction · 0.85

Tested by 3

AcquireSessionStateFunction · 0.68
AcquireSessionStateFunction · 0.68