Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CBRD-25414] The phenomenon of heap memory usage increasing each time utilities are executed #5529

Open
wants to merge 6 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/communication/network_sr.c
Original file line number Diff line number Diff line change
Expand Up @@ -916,6 +916,7 @@ net_server_conn_down (THREAD_ENTRY * thread_p, CSS_THREAD_ARG arg)
int local_tran_index;
THREAD_ENTRY *suspended_p;
size_t loop_count_for_pending_request = 0;
SESSION_ID session_id;

if (thread_p == NULL)
{
Expand Down Expand Up @@ -1060,6 +1061,10 @@ net_server_conn_down (THREAD_ENTRY * thread_p, CSS_THREAD_ARG arg)
(void) xboot_unregister_client (thread_p, tran_index);
session_remove_query_entry_all (thread_p);
}

session_get_session_id (thread_p, &session_id);
joohok marked this conversation as resolved.
Show resolved Hide resolved
session_state_destroy (thread_p, session_id);

css_free_conn (conn_p);

css_set_thread_info (thread_p, -1, 0, local_tran_index, -1);
Expand Down
4 changes: 4 additions & 0 deletions src/compat/db_admin.c
Original file line number Diff line number Diff line change
Expand Up @@ -993,6 +993,10 @@ db_shutdown (void)
{
int error = NO_ERROR;

#if defined(CS_MODE)
db_end_session ();
hornetmj marked this conversation as resolved.
Show resolved Hide resolved
#endif

error = boot_shutdown_client (true);
db_Database_name[0] = '\0';
db_Connect_status = DB_CONNECTION_STATUS_NOT_CONNECTED;
Expand Down
1 change: 0 additions & 1 deletion src/executables/csql.c
Original file line number Diff line number Diff line change
Expand Up @@ -2727,7 +2727,6 @@ csql_exit_session (int error)
histo_stop ();
}
}
db_end_session ();

if (db_shutdown () < 0)
{
Expand Down
Loading