Shutdown the SessionState for current session */
| 295 | |
| 296 | /* Shutdown the SessionState for current session */ |
| 297 | void |
| 298 | SessionState_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 |