Skip to content

File compactdb.c

FileList > cubrid > src > executables > compactdb.c

Go to the source code of this file

  • #include "config.h"
  • #include <stdio.h>
  • #include <errno.h>
  • #include <string.h>
  • #include <assert.h>
  • #include "porting.h"
  • #include "dbtype.h"
  • #include "load_object.h"
  • #include "db.h"
  • #include "locator_cl.h"
  • #include "locator_sr.h"
  • #include "schema_manager.h"
  • #include "heap_file.h"
  • #include "system_catalog.h"
  • #include "object_accessor.h"
  • #include "set_object.h"
  • #include "btree.h"
  • #include "message_catalog.h"
  • #include "network_interface_cl.h"
  • #include "server_interface.h"
  • #include "system_parameter.h"
  • #include "utility.h"
  • #include "authenticate.h"
  • #include "transaction_cl.h"
  • #include "thread_manager.hpp"

Public Static Attributes

Type Name
RECDES * Diskrec = [**NULL**](freelistheap_8h.md#define-null)
int class_objects = 0
int failed_objects = 0
int total_objects = 0

Public Functions

Type Name
int compactdb (UTIL_FUNCTION_ARG * arg)
int get_class_mops (char ** class_names, int num_class, MOP ** class_list, int * num_class_list)
int get_class_mops_from_file (const char * input_filename, MOP ** class_list, int * num_class_mops)

Public Static Functions

Type Name
RECDES * alloc_recdes (int length)
void compact_usage (const char * argv0)
int compactdb_start (bool verbose_flag, char * input_filename, char ** input_class_name, int input_class_length)
void disk_final (void)
void disk_init (void)
int disk_update_instance (THREAD_ENTRY * thread_p, MOP classop, DESC_OBJ * obj, OID * oid)
void free_recdes (RECDES * rec)
DB_OBJECT * is_class (OID * obj_oid, OID * class_oid)
void process_class (THREAD_ENTRY * thread_p, DB_OBJECT * class_, bool verbose_flag)
void process_object (THREAD_ENTRY * thread_p, DESC_OBJ * desc_obj, OID * obj_oid, bool verbose_flag)
int process_set (THREAD_ENTRY * thread_p, DB_SET * set)
int process_value (THREAD_ENTRY * thread_p, DB_VALUE * value)
int update_indexes (OID * class_oid, OID * obj_oid, RECDES * rec)

Public Static Attributes Documentation

variable Diskrec

RECDES* Diskrec;

variable class_objects

int class_objects;

variable failed_objects

int failed_objects;

variable total_objects

int total_objects;

Public Functions Documentation

function compactdb

int compactdb (
    UTIL_FUNCTION_ARG * arg
) 

function get_class_mops

int get_class_mops (
    char ** class_names,
    int num_class,
    MOP ** class_list,
    int * num_class_list
) 

function get_class_mops_from_file

int get_class_mops_from_file (
    const  char * input_filename,
    MOP ** class_list,
    int * num_class_mops
) 

Public Static Functions Documentation

function alloc_recdes

static RECDES * alloc_recdes (
    int length
) 

function compact_usage

static void compact_usage (
    const  char * argv0
) 

function compactdb_start

static int compactdb_start (
    bool verbose_flag,
    char * input_filename,
    char ** input_class_name,
    int input_class_length
) 

function disk_final

static void disk_final (
    void
) 

function disk_init

static void disk_init (
    void
) 

function disk_update_instance

static int disk_update_instance (
    THREAD_ENTRY * thread_p,
    MOP classop,
    DESC_OBJ * obj,
    OID * oid
) 

function free_recdes

static void free_recdes (
    RECDES * rec
) 

function is_class

static DB_OBJECT * is_class (
    OID * obj_oid,
    OID * class_oid
) 

function process_class

static void process_class (
    THREAD_ENTRY * thread_p,
    DB_OBJECT * class_,
    bool verbose_flag
) 

function process_object

static void process_object (
    THREAD_ENTRY * thread_p,
    DESC_OBJ * desc_obj,
    OID * obj_oid,
    bool verbose_flag
) 

function process_set

static int process_set (
    THREAD_ENTRY * thread_p,
    DB_SET * set
) 

function process_value

static int process_value (
    THREAD_ENTRY * thread_p,
    DB_VALUE * value
) 

function update_indexes

static int update_indexes (
    OID * class_oid,
    OID * obj_oid,
    RECDES * rec
) 


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