From b32d0c473f239b126f973dfe4e66a0b09e013a01 Mon Sep 17 00:00:00 2001 From: h2su Date: Wed, 18 Dec 2024 14:29:31 +0900 Subject: [PATCH] window build fix --- src/session/session.c | 4 ++-- win/cubridcs/cubridcs.def | 2 ++ win/cubridsa/cubridsa.def | 2 ++ 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/session/session.c b/src/session/session.c index e51f545d24..9e43a53515 100644 --- a/src/session/session.c +++ b/src/session/session.c @@ -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 */ @@ -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); } diff --git a/win/cubridcs/cubridcs.def b/win/cubridcs/cubridcs.def index ac18a59f9d..2f65bc0c68 100644 --- a/win/cubridcs/cubridcs.def +++ b/win/cubridcs/cubridcs.def @@ -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 diff --git a/win/cubridsa/cubridsa.def b/win/cubridsa/cubridsa.def index c1d922ba23..1034e05dbf 100644 --- a/win/cubridsa/cubridsa.def +++ b/win/cubridsa/cubridsa.def @@ -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