Skip to content

Commit

Permalink
[CBRD-25700] memory_monitoring_check
Browse files Browse the repository at this point in the history
  • Loading branch information
H2SU committed Dec 17, 2024
1 parent 07b5082 commit 5a69340
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 5 deletions.
3 changes: 2 additions & 1 deletion src/broker/cas.c
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@
#include "cas_sql_log2.h"
#include "broker_acl.h"
#include "dbtype.h"

#if !defined(CAS_FOR_ORACLE) && !defined(CAS_FOR_MYSQL)
#include "environment_variable.h"
#endif /* !CAS_FOR_ORACLE && !CAS_FOR_MYSQL */
Expand All @@ -85,6 +86,7 @@
#if defined (CAS_FOR_CGW)
#include "cas_cgw.h"
#endif
#include "db.h"

static const int DEFAULT_CHECK_INTERVAL = 1;

Expand Down Expand Up @@ -127,7 +129,6 @@ static void set_db_connection_info (void);
static void clear_db_connection_info (void);
static bool need_database_reconnect (void);

extern bool db_Keep_session;
extern bool ssl_client;
extern int cas_init_ssl (int);
extern void cas_ssl_close (int client_sock_fd);
Expand Down
2 changes: 0 additions & 2 deletions src/communication/network_interface_cl.c
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,6 @@ static int net_Deferred_end_queries_count = 0;
*/
unsigned int db_on_server = 0;

extern bool db_Keep_session;

#if defined(CS_MODE)
static char *pack_const_string (char *buffer, const char *cstring);
static char *pack_string_with_null_padding (char *buffer, const char *stream, int len);
Expand Down
1 change: 1 addition & 0 deletions src/compat/db.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
#define DB_CONNECTION_STATUS_RESET -1
extern int db_Connect_status;

extern bool db_Keep_session;
extern SESSION_ID db_Session_id;

extern int db_Row_count;
Expand Down
2 changes: 0 additions & 2 deletions src/compat/db_admin.c
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,6 @@ struct db_host_status_list
The macros for testing this variable were moved to db.h so the query
interface functions can use them as well. */

extern bool db_Keep_session;

char db_Database_name[DB_MAX_IDENTIFIER_LENGTH + 1];
char db_Program_name[PATH_MAX];
char db_Client_ip_addr[16] = { 0 };
Expand Down

0 comments on commit 5a69340

Please sign in to comment.