CUBRID Engine  latest
shard_proxy.c File Reference
#include <signal.h>
#include <errno.h>
#include "porting.h"
#include "shard_proxy.h"
#include "shard_proxy_handler.h"
#include "shard_key_func.h"
Include dependency graph for shard_proxy.c:

Go to the source code of this file.

Macros

#define ENDLESS   1
 

Functions

static int proxy_shm_initialize (void)
 
static void cleanup (int signo)
 
static void proxy_set_hang_check_time (void)
 
static void proxy_unset_hang_check_time (void)
 
void proxy_term (void)
 
int main (int argc, char *argv[])
 

Variables

int appl_server_shm_id = -1
 
T_SHM_APPL_SERVERshm_as_p = NULL
 
int proxy_id = -1
 
int proxy_shm_id = -1
 
T_SHM_PROXYshm_proxy_p = NULL
 
T_PROXY_INFOproxy_info_p = NULL
 
T_SHM_SHARD_USERshm_user_p = NULL
 
T_SHM_SHARD_KEYshm_key_p = NULL
 
T_SHM_SHARD_CONNshm_conn_p = NULL
 
bool proxy_Keep_running
 

Macro Definition Documentation

#define ENDLESS   1

Definition at line 39 of file shard_proxy.c.

Function Documentation

static void cleanup ( int  signo)
static

Definition at line 81 of file shard_proxy.c.

References proxy_term().

Referenced by main().

Here is the caller graph for this function:

static void proxy_set_hang_check_time ( void  )
static

Definition at line 246 of file shard_proxy.c.

References t_proxy_info::claimed_alive_time, t_shm_appl_server::monitor_hang_flag, and NULL.

Referenced by main().

Here is the caller graph for this function:

void proxy_term ( void  )

Definition at line 65 of file shard_proxy.c.

References proxy_access_log_close(), proxy_handler_destroy(), proxy_io_destroy(), proxy_log_close(), shard_stmt_destroy(), and SLEEP_MILISEC.

Referenced by cleanup(), and main().

Here is the caller graph for this function:

static void proxy_unset_hang_check_time ( void  )
static

Definition at line 255 of file shard_proxy.c.

References t_proxy_info::claimed_alive_time, t_shm_appl_server::monitor_hang_flag, and NULL.

Referenced by main().

Here is the caller graph for this function:

Variable Documentation

bool proxy_Keep_running
int proxy_shm_id = -1
T_SHM_PROXY* shm_proxy_p = NULL

Definition at line 47 of file shard_proxy.c.