Skip to content

File cas_handle.c

FileList > broker > cas_handle.c

Go to the source code of this file

  • #include <stdio.h>
  • #include <stdlib.h>
  • #include <string.h>
  • #include <assert.h>
  • #include <unistd.h>
  • #include "cas_log.h"
  • #include "dbtype.h"
  • #include "cas_common_execute.h"

Public Static Attributes

Type Name
cgw_free_stmt_func_t cgw_free_stmt_func = [**NULL**](freelistheap_8h.md#define-null)
int current_handle_count = 0
int current_handle_id = -1
bool is_cgw_mode = [**false**](broker__monitor_8c.md#function-timeout)
int max_handle_id = 0
int max_srv_handle = 0
T_SRV_HANDLE ** srv_handle_table = [**NULL**](freelistheap_8h.md#define-null)

Public Functions

Type Name
void hm_col_update_info_clear (T_COL_UPDATE_INFO * col_update_info)
T_SRV_HANDLE * hm_find_srv_handle (int h_id)
void hm_free_result (void * res)
int hm_new_srv_handle (T_SRV_HANDLE ** new_handle, unsigned int seq_num)
void hm_prepare_call_info_free (T_PREPARE_CALL_INFO * call_info)
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_set_cgw_free_stmt_func (cgw_free_stmt_func_t func)
void hm_set_cgw_mode (bool enabled)
void hm_set_current_srv_handle (int h_id)
void hm_srv_handle_free (int h_id)
void hm_srv_handle_free_all (bool free_holdable)
int hm_srv_handle_get_current_count (void)
void hm_srv_handle_qresult_end_all (bool end_holdable)
void hm_srv_handle_set_pooled ()
void hm_srv_handle_unset_prepare_flag_all (void)
void release_all_fk_info_results (T_FK_INFO_RESULT * fk_res)
bool tran_is_in_libcas (void)

Public Static Functions

Type Name
void col_update_info_free (T_QUERY_RESULT * q_result)
void prepare_call_info_dbval_clear (T_PREPARE_CALL_INFO * call_info)
void srv_handle_content_free (T_SRV_HANDLE * srv_handle)
void srv_handle_rm_tmp_file (int h_id, T_SRV_HANDLE * srv_handle)

Macros

Type Name
define SRV_HANDLE_ALLOC_SIZE 256

Public Static Attributes Documentation

variable cgw_free_stmt_func

cgw_free_stmt_func_t cgw_free_stmt_func;

variable current_handle_count

int current_handle_count;

variable current_handle_id

int current_handle_id;

variable is_cgw_mode

bool is_cgw_mode;

variable max_handle_id

int max_handle_id;

variable max_srv_handle

int max_srv_handle;

variable srv_handle_table

T_SRV_HANDLE** srv_handle_table;

Public Functions Documentation

function hm_col_update_info_clear

void hm_col_update_info_clear (
    T_COL_UPDATE_INFO * col_update_info
) 

function hm_find_srv_handle

T_SRV_HANDLE * hm_find_srv_handle (
    int h_id
) 

function hm_free_result

void hm_free_result (
    void * res
) 

function hm_new_srv_handle

int hm_new_srv_handle (
    T_SRV_HANDLE ** new_handle,
    unsigned  int seq_num
) 

function hm_prepare_call_info_free

void hm_prepare_call_info_free (
    T_PREPARE_CALL_INFO * call_info
) 

function hm_qresult_clear

void hm_qresult_clear (
    T_QUERY_RESULT * q_result
) 

function hm_qresult_end

void hm_qresult_end (
    T_SRV_HANDLE * srv_handle,
    char free_flag
) 

function hm_session_free

void hm_session_free (
    T_SRV_HANDLE * srv_handle
) 

function hm_set_cgw_free_stmt_func

void hm_set_cgw_free_stmt_func (
    cgw_free_stmt_func_t func
) 

function hm_set_cgw_mode

void hm_set_cgw_mode (
    bool enabled
) 

function hm_set_current_srv_handle

void hm_set_current_srv_handle (
    int h_id
) 

function hm_srv_handle_free

void hm_srv_handle_free (
    int h_id
) 

function hm_srv_handle_free_all

void hm_srv_handle_free_all (
    bool free_holdable
) 

function hm_srv_handle_get_current_count

int hm_srv_handle_get_current_count (
    void
) 

function hm_srv_handle_qresult_end_all

void hm_srv_handle_qresult_end_all (
    bool end_holdable
) 

function hm_srv_handle_set_pooled

void hm_srv_handle_set_pooled () 

function hm_srv_handle_unset_prepare_flag_all

void hm_srv_handle_unset_prepare_flag_all (
    void
) 

function release_all_fk_info_results

void release_all_fk_info_results (
    T_FK_INFO_RESULT * fk_res
) 

function tran_is_in_libcas

bool tran_is_in_libcas (
    void
) 

Public Static Functions Documentation

function col_update_info_free

static void col_update_info_free (
    T_QUERY_RESULT * q_result
) 

function prepare_call_info_dbval_clear

static void prepare_call_info_dbval_clear (
    T_PREPARE_CALL_INFO * call_info
) 

function srv_handle_content_free

static void srv_handle_content_free (
    T_SRV_HANDLE * srv_handle
) 

function srv_handle_rm_tmp_file

static void srv_handle_rm_tmp_file (
    int h_id,
    T_SRV_HANDLE * srv_handle
) 

Macro Definition Documentation

define SRV_HANDLE_ALLOC_SIZE

#define SRV_HANDLE_ALLOC_SIZE `256`


The documentation for this class was generated from the following file cubrid/src/broker/cas_handle.c