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

Function SessionState_Shutdown

src/backend/utils/session_state.c:297–309  ·  view source on GitHub ↗

Shutdown the SessionState for current session */

Source from the content-addressed store, hash-verified

295
296/* Shutdown the SessionState for current session */
297void
298SessionState_Shutdown()
299{
300 Assert(INVALID_SESSION_ID == gp_session_id || NULL != MySessionState);
301
302 Assert(INVALID_SESSION_ID == gp_session_id || sessionStateInited);
303
304 SessionState_Release((SessionState *)MySessionState);
305
306 MySessionState = NULL;
307
308 sessionStateInited = false;
309}
310
311/*
312 * Returns true if the SessionState entry is acquired by a session

Calls 1

SessionState_ReleaseFunction · 0.85