File transaction_cl.h
FileList > cubrid > src > transaction > transaction_cl.h
Go to the source code of this file
#include "config.h"
#include "error_manager.h"
#include "locator.h"
#include "storage_common.h"
#include "log_comm.h"
Public Types
Public Attributes
Public Functions
| Type |
Name |
| int |
tran_2pc_attach_global_tran (int gtrid)
|
| int |
tran_2pc_prepare (void)
|
| int |
tran_2pc_prepare_global_tran (int gtrid)
|
| int |
tran_2pc_recovery_prepared (int gtrids, int size)
|
| int |
tran_2pc_start (void)
|
| int |
tran_abort (void)
|
| int |
tran_abort_only_client (bool is_server_down)
|
| int |
tran_abort_upto_system_savepoint (const char * savepoint_name)
|
| int |
tran_abort_upto_user_savepoint (const char * savepoint_name)
|
| void |
tran_begin_libcas_function (void)
|
| void |
tran_cache_tran_settings (int tran_index, int lock_timeout, TRAN_ISOLATION tran_isolation)
|
| int |
tran_commit (bool retain_lock)
|
| void |
tran_end_libcas_function (void)
|
| int |
tran_flush_to_commit (void)
|
| void |
tran_free_savepoint_list (void)
|
| bool |
tran_get_check_interrupt (void)
|
| int |
tran_get_global_tran_info (int gtrid, void * buffer, int size)
|
| int |
tran_get_libcas_depth (void)
|
| int |
tran_get_query_timeout (void)
|
| void |
tran_get_tran_settings (int * lock_timeout_in_msecs, TRAN_ISOLATION * tran_isolation, bool * async_ws)
|
| bool |
tran_has_updated (void)
|
| int |
tran_internal_abort_upto_savepoint (const char * savepoint_name, SAVEPOINT_TYPE savepoint_type, bool client_decache_only_insts)
|
| bool |
tran_is_active_and_has_updated (void)
|
| bool |
tran_is_in_libcas (void)
|
| bool |
tran_is_reset_required (void)
|
| int |
tran_reset_isolation (TRAN_ISOLATION isolation, bool async_ws)
|
| void |
tran_reset_latest_query_status (void)
|
| void |
tran_reset_libcas_function (void)
|
| int |
tran_reset_wait_times (int wait_in_msecs)
|
| int |
tran_savepoint_internal (const char * savept_name, SAVEPOINT_TYPE savepoint_type)
|
| bool |
tran_set_check_interrupt (bool flag)
|
| int |
tran_set_global_tran_info (int gtrid, void * info, int size)
|
| void |
tran_set_latest_query_status (int end_query_result, int tran_state, int should_conn_reset)
|
| void |
tran_set_query_timeout (int query_timeout)
|
| int |
tran_system_savepoint (const char * savept_name)
|
| int |
tran_unilaterally_abort (void)
|
| bool |
tran_was_latest_query_aborted (void)
|
| bool |
tran_was_latest_query_committed (void)
|
| bool |
tran_was_latest_query_ended (void)
|
Macros
| Type |
Name |
| define |
TM_TRAN_ASYNC_WS () ([**tm\_Tran\_async\_ws**](transaction__cl_8c.md#variable-tm_tran_async_ws))
|
| define |
TM_TRAN_ID () ([**tm\_Tran\_ID**](transaction__cl_8c.md#variable-tm_tran_id))
|
| define |
TM_TRAN_INDEX () ([**tm\_Tran\_index**](transaction__cl_8c.md#variable-tm_tran_index))
|
| define |
TM_TRAN_ISOLATION () ([**tm\_Tran\_isolation**](transaction__cl_8c.md#variable-tm_tran_isolation))
|
| define |
TM_TRAN_READ_FETCH_VERSION () ([**tm\_Tran\_read\_fetch\_instance\_version**](transaction__cl_8c.md#variable-tm_tran_read_fetch_instance_version))
|
| define |
TM_TRAN_REP_READ_LOCK () ([**tm\_Tran\_rep\_read\_lock**](transaction__cl_8c.md#variable-tm_tran_rep_read_lock))
|
| define |
TM_TRAN_WAIT_MSECS () ([**tm\_Tran\_wait\_msecs**](transaction__cl_8c.md#variable-tm_tran_wait_msecs))
|
Public Types Documentation
typedef SAVEPOINT_TYPE
typedef enum savepoint_type SAVEPOINT_TYPE;
enum savepoint_type
enum savepoint_type {
USER_SAVEPOINT = 1,
SYSTEM_SAVEPOINT = 2
};
Public Attributes Documentation
variable tm_Tran_ID
variable tm_Tran_async_ws
variable tm_Tran_check_interrupt
bool tm_Tran_check_interrupt;
variable tm_Tran_index
variable tm_Tran_invalidate_snapshot
int tm_Tran_invalidate_snapshot;
variable tm_Tran_isolation
TRAN_ISOLATION tm_Tran_isolation;
variable tm_Tran_read_fetch_instance_version
LC_FETCH_VERSION_TYPE tm_Tran_read_fetch_instance_version;
variable tm_Tran_rep_read_lock
LOCK tm_Tran_rep_read_lock;
variable tm_Tran_wait_msecs
variable tm_Use_OID_preflush
bool tm_Use_OID_preflush;
Public Functions Documentation
function tran_2pc_attach_global_tran
int tran_2pc_attach_global_tran (
int gtrid
)
function tran_2pc_prepare
int tran_2pc_prepare (
void
)
function tran_2pc_prepare_global_tran
int tran_2pc_prepare_global_tran (
int gtrid
)
function tran_2pc_recovery_prepared
int tran_2pc_recovery_prepared (
int gtrids,
int size
)
function tran_2pc_start
int tran_2pc_start (
void
)
function tran_abort
function tran_abort_only_client
int tran_abort_only_client (
bool is_server_down
)
function tran_abort_upto_system_savepoint
int tran_abort_upto_system_savepoint (
const char * savepoint_name
)
function tran_abort_upto_user_savepoint
int tran_abort_upto_user_savepoint (
const char * savepoint_name
)
function tran_begin_libcas_function
void tran_begin_libcas_function (
void
)
function tran_cache_tran_settings
void tran_cache_tran_settings (
int tran_index,
int lock_timeout,
TRAN_ISOLATION tran_isolation
)
function tran_commit
int tran_commit (
bool retain_lock
)
function tran_end_libcas_function
void tran_end_libcas_function (
void
)
function tran_flush_to_commit
int tran_flush_to_commit (
void
)
function tran_free_savepoint_list
void tran_free_savepoint_list (
void
)
function tran_get_check_interrupt
bool tran_get_check_interrupt (
void
)
function tran_get_global_tran_info
int tran_get_global_tran_info (
int gtrid,
void * buffer,
int size
)
function tran_get_libcas_depth
int tran_get_libcas_depth (
void
)
function tran_get_query_timeout
int tran_get_query_timeout (
void
)
function tran_get_tran_settings
void tran_get_tran_settings (
int * lock_timeout_in_msecs,
TRAN_ISOLATION * tran_isolation,
bool * async_ws
)
function tran_has_updated
bool tran_has_updated (
void
)
function tran_internal_abort_upto_savepoint
int tran_internal_abort_upto_savepoint (
const char * savepoint_name,
SAVEPOINT_TYPE savepoint_type,
bool client_decache_only_insts
)
function tran_is_active_and_has_updated
bool tran_is_active_and_has_updated (
void
)
function tran_is_in_libcas
bool tran_is_in_libcas (
void
)
function tran_is_reset_required
bool tran_is_reset_required (
void
)
function tran_reset_isolation
int tran_reset_isolation (
TRAN_ISOLATION isolation,
bool async_ws
)
function tran_reset_latest_query_status
void tran_reset_latest_query_status (
void
)
function tran_reset_libcas_function
void tran_reset_libcas_function (
void
)
function tran_reset_wait_times
int tran_reset_wait_times (
int wait_in_msecs
)
function tran_savepoint_internal
int tran_savepoint_internal (
const char * savept_name,
SAVEPOINT_TYPE savepoint_type
)
function tran_set_check_interrupt
bool tran_set_check_interrupt (
bool flag
)
function tran_set_global_tran_info
int tran_set_global_tran_info (
int gtrid,
void * info,
int size
)
function tran_set_latest_query_status
void tran_set_latest_query_status (
int end_query_result,
int tran_state,
int should_conn_reset
)
function tran_set_query_timeout
void tran_set_query_timeout (
int query_timeout
)
function tran_system_savepoint
int tran_system_savepoint (
const char * savept_name
)
function tran_unilaterally_abort
int tran_unilaterally_abort (
void
)
function tran_was_latest_query_aborted
bool tran_was_latest_query_aborted (
void
)
function tran_was_latest_query_committed
bool tran_was_latest_query_committed (
void
)
function tran_was_latest_query_ended
bool tran_was_latest_query_ended (
void
)
Macro Definition Documentation
define TM_TRAN_ASYNC_WS
#define TM_TRAN_ASYNC_WS (
) `( tm_Tran_async_ws )`
define TM_TRAN_ID
#define TM_TRAN_ID (
) `( tm_Tran_ID )`
define TM_TRAN_INDEX
#define TM_TRAN_INDEX (
) `( tm_Tran_index )`
define TM_TRAN_ISOLATION
#define TM_TRAN_ISOLATION (
) `( tm_Tran_isolation )`
define TM_TRAN_READ_FETCH_VERSION
#define TM_TRAN_READ_FETCH_VERSION (
) `( tm_Tran_read_fetch_instance_version )`
define TM_TRAN_REP_READ_LOCK
#define TM_TRAN_REP_READ_LOCK (
) `( tm_Tran_rep_read_lock )`
define TM_TRAN_WAIT_MSECS
#define TM_TRAN_WAIT_MSECS (
) `( tm_Tran_wait_msecs )`
The documentation for this class was generated from the following file cubrid/src/transaction/transaction_cl.h