Skip to content

File cas_error_log.c

FileList > broker > cas_error_log.c

Go to the source code of this file

  • #include <stdio.h>
  • #include <stdarg.h>
  • #include <stdlib.h>
  • #include <time.h>
  • #include <string.h>
  • #include <errno.h>
  • #include <unistd.h>
  • #include <sys/time.h>
  • #include <assert.h>
  • #include "cas_common.h"
  • #include "cas_error_log.h"
  • #include "cas_util.h"
  • #include "broker_config.h"
  • #include "cas.h"
  • #include "cas_execute.h"
  • #include "broker_env_def.h"
  • #include "broker_filename.h"
  • #include "broker_util.h"

Public Static Attributes

Type Name
int eid = 0
char error_log_filepath
FILE * error_log_fp = [**NULL**](freelistheap_8h.md#define-null)
long saved_error_log_fpos = 0

Public Functions

Type Name
void cas_error_log_close (bool flag)
char * cas_error_log_get_eid (char * buf, size_t bufsz)
void cas_error_log_open (char * br_name)
void cas_error_log_write (int dbms_errno, const char * dbms_errmsg)

Public Static Functions

Type Name
void cas_error_log_backup (void)
void cas_log_write_internal (const char * fmt, ...)
char * make_error_log_filename (char * filename_buf, size_t buf_size, const char * br_name)

Public Static Attributes Documentation

variable eid

int eid;

variable error_log_filepath

char error_log_filepath[(PATH_MAX)];

variable error_log_fp

FILE* error_log_fp;

variable saved_error_log_fpos

long saved_error_log_fpos;

Public Functions Documentation

function cas_error_log_close

void cas_error_log_close (
    bool flag
) 

function cas_error_log_get_eid

char * cas_error_log_get_eid (
    char * buf,
    size_t bufsz
) 

function cas_error_log_open

void cas_error_log_open (
    char * br_name
) 

function cas_error_log_write

void cas_error_log_write (
    int dbms_errno,
    const  char * dbms_errmsg
) 

Public Static Functions Documentation

function cas_error_log_backup

static void cas_error_log_backup (
    void
) 

function cas_log_write_internal

static void cas_log_write_internal (
    const  char * fmt,
    ...
) 

function make_error_log_filename

static char * make_error_log_filename (
    char * filename_buf,
    size_t buf_size,
    const  char * br_name
) 


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