Initialize the SessionState for current session */
| 275 | |
| 276 | /* Initialize the SessionState for current session */ |
| 277 | void |
| 278 | SessionState_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 */ |
| 297 | void |