CUBRID Engine  latest
cas_handle.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>
#include <unistd.h>
#include "cas_db_inc.h"
#include "cas_execute.h"
#include "cas.h"
#include "cas_common.h"
#include "cas_handle.h"
#include "cas_log.h"
Include dependency graph for cas_handle.c:

Go to the source code of this file.

Macros

#define SRV_HANDLE_ALLOC_SIZE   256
 

Functions

static void srv_handle_content_free (T_SRV_HANDLE *srv_handle)
 
static void col_update_info_free (T_QUERY_RESULT *q_result)
 
static void srv_handle_rm_tmp_file (int h_id, T_SRV_HANDLE *srv_handle)
 
int hm_new_srv_handle (T_SRV_HANDLE **new_handle, unsigned int seq_num)
 
T_SRV_HANDLEhm_find_srv_handle (int h_id)
 
void hm_srv_handle_free (int h_id)
 
void hm_srv_handle_free_all (bool free_holdable)
 
void hm_srv_handle_unset_prepare_flag_all (void)
 
void hm_srv_handle_qresult_end_all (bool end_holdable)
 
void hm_qresult_clear (T_QUERY_RESULT *q_result)
 
void hm_qresult_end (T_SRV_HANDLE *srv_handle, char free_flag)
 
void hm_session_free (T_SRV_HANDLE *srv_handle)
 
void hm_col_update_info_clear (T_COL_UPDATE_INFO *col_update_info)
 
int hm_srv_handle_get_current_count (void)
 

Variables

static T_SRV_HANDLE ** srv_handle_table = NULL
 
static int max_srv_handle = 0
 
static int max_handle_id = 0
 
static int current_handle_count = 0
 

Macro Definition Documentation

#define SRV_HANDLE_ALLOC_SIZE   256

Definition at line 48 of file cas_handle.c.

Referenced by hm_new_srv_handle().

Function Documentation

static void col_update_info_free ( T_QUERY_RESULT q_result)
static
void hm_col_update_info_clear ( T_COL_UPDATE_INFO col_update_info)

Definition at line 402 of file cas_handle.c.

Referenced by prepare_column_list_info_set().

Here is the caller graph for this function:

void hm_qresult_clear ( T_QUERY_RESULT q_result)

Definition at line 308 of file cas_handle.c.

Referenced by create_srv_handle_with_query_result(), sch_query_execute(), ux_execute_all(), and ux_prepare().

Here is the caller graph for this function:

void hm_session_free ( T_SRV_HANDLE srv_handle)

Definition at line 386 of file cas_handle.c.

References db_close_session(), NULL, and t_srv_handle::session.

Referenced by srv_handle_content_free(), ux_execute(), ux_execute_all(), and ux_execute_array().

Here is the caller graph for this function:

void hm_srv_handle_free_all ( bool  free_holdable)
int hm_srv_handle_get_current_count ( void  )

Definition at line 494 of file cas_handle.c.

References current_handle_count.

Referenced by shard_cas_main().

Here is the caller graph for this function:

void hm_srv_handle_qresult_end_all ( bool  end_holdable)
void hm_srv_handle_unset_prepare_flag_all ( void  )
static void srv_handle_rm_tmp_file ( int  h_id,
T_SRV_HANDLE srv_handle 
)
static

Definition at line 477 of file cas_handle.c.

References cas_log_query_plan_file(), NULL, p, t_srv_handle::query_info_flag, and TRUE.

Referenced by hm_srv_handle_free(), and hm_srv_handle_free_all().

Here is the caller graph for this function:

Variable Documentation

int current_handle_count = 0
static
int max_handle_id = 0
static
int max_srv_handle = 0
static

Definition at line 55 of file cas_handle.c.

Referenced by hm_find_srv_handle(), hm_new_srv_handle(), and hm_srv_handle_free().

T_SRV_HANDLE** srv_handle_table = NULL
static

Definition at line 54 of file cas_handle.c.