Skip to content

Commit

Permalink
window build fix
Browse files Browse the repository at this point in the history
  • Loading branch information
H2SU committed Dec 19, 2024
1 parent 94302f5 commit c3b46e7
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/session/session.c
Original file line number Diff line number Diff line change
Expand Up @@ -944,8 +944,6 @@ session_remove_expired_sessions (THREAD_ENTRY * thread_p)
/* Now we can destroy this session */
assert (state->ref_count == 0);

expired_sid_buffer[n_expired_sids++] = state->id;

if (state->is_keep_session == true)
{
/* keep session */
Expand All @@ -954,6 +952,8 @@ session_remove_expired_sessions (THREAD_ENTRY * thread_p)
}
else
{
expired_sid_buffer[n_expired_sids++] = state->id;

/* Destroy the session related resources like session parameters */
(void) session_state_uninit (state);
}
Expand Down
2 changes: 2 additions & 0 deletions win/cubridcs/cubridcs.def
Original file line number Diff line number Diff line change
Expand Up @@ -299,6 +299,8 @@ EXPORTS
db_restart_ex
db_set_session_id
db_get_session_id
db_set_keep_session
db_get_keep_session
db_find_or_create_session
db_end_session
db_set_connect_status
Expand Down
2 changes: 2 additions & 0 deletions win/cubridsa/cubridsa.def
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ EXPORTS
db_restart_ex
db_set_session_id
db_get_session_id
db_set_keep_session
db_get_keep_session
db_find_or_create_session
db_end_session
db_set_server_session_key
Expand Down

0 comments on commit c3b46e7

Please sign in to comment.