Skip to content

File migrate.c

FileList > cubrid > src > executables > migrate.c

Go to the source code of this file

  • #include "config.h"
  • #include <stdio.h>
  • #include <stdlib.h>
  • #include <string.h>
  • #include <ctype.h>
  • #include <signal.h>
  • #include <errno.h>
  • #include <assert.h>
  • #include "dbi.h"
  • #include "porting.h"
  • #include "utility.h"
  • #include "databases_file.h"
  • #include "boot_sr.h"
  • #include "log_impl.h"
  • #include "btree.h"
  • #include "schema_system_catalog_constants.h"
  • #include "message_catalog.h"
  • #include "error_manager.h"
  • #include "system_parameter.h"
  • #include "language_support.h"
  • #include "catalog_class.h"

Classes

Type Name
struct VOLUME_UNDO_INFO
struct r91_disk_var_header

Public Types

Type Name
typedef struct r91_disk_var_header R91_DISK_VAR_HEADER

Public Static Attributes

Type Name
int vol_undo_count
VOLUME_UNDO_INFO * vol_undo_info
int vol_undo_list_length

Public Functions

Type Name
int main (int argc, char * argv)

Public Static Functions

Type Name
int check_and_fix_compat_level (const char * db_name, const char * vol_path)
int fix_all_volume_header (const char * db_path)
int fix_codeset_in_active_log (const char * db_path, INTL_CODESET codeset)
int fix_volume_header (const char * vol_path)
void free_volume_header_undo_list (void)
int get_active_log_vol_path (const char * db_path, char * logvol_path)
int get_codeset_from_db_root (void)
int get_db_path (const char * db_name, char * db_full_path)
void intr_handler (int sig_no)
char * make_volume_header_undo_page (const char * vol_path, int size)
int undo_fix_compat_level (const char * db_path)
int undo_fix_volume_header (const char * vol_path, char * undo_page, int size)

Macros

Type Name
define FCLOSE_AND_CHECK (fp, filename) /* multi line expression */
define FFLUSH_AND_CHECK (fp, filename) /* multi line expression */
define FOPEN_AND_CHECK (fp, filename, mode) /* multi line expression */
define FREAD_AND_CHECK (ptr, size, n, fp, filename) /* multi line expression */
define FSEEK_AND_CHECK (fp, size, origin, filename) /* multi line expression */
define FWRITE_AND_CHECK (ptr, size, n, fp, filename) /* multi line expression */
define QUERY_SIZE 1024
define UNDO_LIST_SIZE (32)
define V9_1_LEVEL (9.1f)
define V9_2_LEVEL (9.2f)

Public Types Documentation

typedef R91_DISK_VAR_HEADER

typedef struct r91_disk_var_header R91_DISK_VAR_HEADER;

Public Static Attributes Documentation

variable vol_undo_count

int vol_undo_count;

variable vol_undo_info

VOLUME_UNDO_INFO* vol_undo_info;

variable vol_undo_list_length

int vol_undo_list_length;

Public Functions Documentation

function main

int main (
    int argc,
    char * argv
) 

Public Static Functions Documentation

function check_and_fix_compat_level

static int check_and_fix_compat_level (
    const  char * db_name,
    const  char * vol_path
) 

function fix_all_volume_header

static int fix_all_volume_header (
    const  char * db_path
) 

function fix_codeset_in_active_log

static int fix_codeset_in_active_log (
    const  char * db_path,
    INTL_CODESET codeset
) 

function fix_volume_header

static int fix_volume_header (
    const  char * vol_path
) 

function free_volume_header_undo_list

static void free_volume_header_undo_list (
    void
) 

function get_active_log_vol_path

static int get_active_log_vol_path (
    const  char * db_path,
    char * logvol_path
) 

function get_codeset_from_db_root

static int get_codeset_from_db_root (
    void
) 

function get_db_path

static int get_db_path (
    const  char * db_name,
    char * db_full_path
) 

function intr_handler

static void intr_handler (
    int sig_no
) 

function make_volume_header_undo_page

static char * make_volume_header_undo_page (
    const  char * vol_path,
    int size
) 

function undo_fix_compat_level

static int undo_fix_compat_level (
    const  char * db_path
) 

function undo_fix_volume_header

static int undo_fix_volume_header (
    const  char * vol_path,
    char * undo_page,
    int size
) 

Macro Definition Documentation

define FCLOSE_AND_CHECK

#define FCLOSE_AND_CHECK (
    fp,
    filename
) `/* multi line expression */`

define FFLUSH_AND_CHECK

#define FFLUSH_AND_CHECK (
    fp,
    filename
) `/* multi line expression */`

define FOPEN_AND_CHECK

#define FOPEN_AND_CHECK (
    fp,
    filename,
    mode
) `/* multi line expression */`

define FREAD_AND_CHECK

#define FREAD_AND_CHECK (
    ptr,
    size,
    n,
    fp,
    filename
) `/* multi line expression */`

define FSEEK_AND_CHECK

#define FSEEK_AND_CHECK (
    fp,
    size,
    origin,
    filename
) `/* multi line expression */`

define FWRITE_AND_CHECK

#define FWRITE_AND_CHECK (
    ptr,
    size,
    n,
    fp,
    filename
) `/* multi line expression */`

define QUERY_SIZE

#define QUERY_SIZE `1024`

define UNDO_LIST_SIZE

#define UNDO_LIST_SIZE `(32)`

define V9_1_LEVEL

#define V9_1_LEVEL `(9.1f)`

define V9_2_LEVEL

#define V9_2_LEVEL `(9.2f)`


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