File broker_log_top.c
FileList > broker > broker_log_top.c
Go to the source code of this file
#include <stdio.h>
#include <errno.h>
#include <string.h>
#include <stdlib.h>
#include <assert.h>
#include <unistd.h>
#include "cubrid_getopt.h"
#include "cas_common.h"
#include "cas_query_info.h"
#include "broker_log_time.h"
#include "broker_log_sql_list.h"
#include "log_top_string.h"
#include "broker_log_top.h"
#include "broker_log_util.h"
Public Attributes
Public Static Attributes
Public Functions
Public Static Functions
| Type |
Name |
| int |
get_args (int argc, char * argv)
|
| int |
log_execute (T_QUERY_INFO * qi, char * linebuf, char ** query_p)
|
| int |
log_top (FILE * fp, char * filename, long start_offset, long end_offset)
|
| int |
log_top_query (int argc, char * argv, int arg_start)
|
| char * |
organize_query_string (const char * sql)
|
| int |
read_bind_value (FILE * fp, T_STRING * t_str, char ** linebuf, int * lineno, T_STRING * cas_log_buf)
|
| int |
read_execute_end_msg (char * msg_p, int * res_code, int * runtime_msec)
|
| int |
read_multi_line_sql (FILE * fp, T_STRING * t_str, char ** linebuf, int * lineno, T_STRING * sql_buf, T_STRING * cas_log_buf)
|
| int |
search_offset (FILE * fp, char * string, long * offset, bool start)
|
Macros
Public Attributes Documentation
variable log_top_mode
T_LOG_TOP_MODE log_top_mode;
Public Static Attributes Documentation
variable from_date
variable mode_max_handle_lower_bound
int mode_max_handle_lower_bound;
variable mode_tran
variable sql_info_file
variable to_date
Public Functions Documentation
function check_log_time
int check_log_time (
char * start_date,
char * end_date
)
function get_file_offset
int get_file_offset (
char * filename,
long * start_offset,
long * end_offset
)
function main
int main (
int argc,
char * argv
)
Public Static Functions Documentation
function get_args
static int get_args (
int argc,
char * argv
)
function log_execute
static int log_execute (
T_QUERY_INFO * qi,
char * linebuf,
char ** query_p
)
function log_top
static int log_top (
FILE * fp,
char * filename,
long start_offset,
long end_offset
)
function log_top_query
static int log_top_query (
int argc,
char * argv,
int arg_start
)
function organize_query_string
static char * organize_query_string (
const char * sql
)
function read_bind_value
static int read_bind_value (
FILE * fp,
T_STRING * t_str,
char ** linebuf,
int * lineno,
T_STRING * cas_log_buf
)
function read_execute_end_msg
static int read_execute_end_msg (
char * msg_p,
int * res_code,
int * runtime_msec
)
function read_multi_line_sql
static int read_multi_line_sql (
FILE * fp,
T_STRING * t_str,
char ** linebuf,
int * lineno,
T_STRING * sql_buf,
T_STRING * cas_log_buf
)
function search_offset
static int search_offset (
FILE * fp,
char * string,
long * offset,
bool start
)
Macro Definition Documentation
define CLIENT_MSG_BUF_SIZE
#define CLIENT_MSG_BUF_SIZE `1024`
define CONNECT_MSG_BUF_SIZE
#define CONNECT_MSG_BUF_SIZE `1024`
define MAX_SRV_HANDLE
#define MAX_SRV_HANDLE `3000`
The documentation for this class was generated from the following file cubrid/src/broker/broker_log_top.c