Skip to content

File compactdb_sr.c

FileList > cubrid > src > storage > compactdb_sr.c

Go to the source code of this file

  • #include "config.h"
  • #include <stdio.h>
  • #include <stdlib.h>
  • #include <sys/types.h>
  • #include <sys/stat.h>
  • #include <assert.h>
  • #include "btree.h"
  • #include "thread_compat.hpp"
  • #include "heap_file.h"
  • #include "dbtype.h"
  • #include "boot_sr.h"
  • #include "locator_sr.h"
  • #include "set_object.h"
  • #include "xserver_interface.h"
  • #include "server_interface.h"
  • #include "memory_wrapper.hpp"

Public Static Attributes

Type Name
bool compact_started = [**false**](broker__monitor_8c.md#function-timeout)
int last_tran_index = -1

Public Functions

Type Name
bool boot_can_compact (THREAD_ENTRY * thread_p)
int boot_compact_db (THREAD_ENTRY * thread_p, OID * class_oids, int n_classes, int space_to_process, int instance_lock_timeout, int class_lock_timeout, bool delete_old_repr, OID * last_processed_class_oid, OID * last_processed_oid, int * total_objects, int * failed_objects, int * modified_objects, int * big_objects, int * initial_last_repr_id)
int boot_compact_start (THREAD_ENTRY * thread_p)
int boot_compact_stop (THREAD_ENTRY * thread_p)
int boot_heap_compact_pages (THREAD_ENTRY * thread_p, OID * class_oid)

Public Static Functions

Type Name
int desc_disk_to_attr_info (THREAD_ENTRY * thread_p, OID * oid, RECDES * recdes, HEAP_CACHE_ATTRINFO * attr_info)
bool is_class (OID * obj_oid, OID * class_oid)
int process_class (THREAD_ENTRY * thread_p, OID * class_oid, HFID * hfid, int max_space_to_process, int * instance_lock_timeout, int * space_to_process, OID * last_processed_oid, int * total_objects, int * failed_objects, int * modified_objects, int * big_objects)
int process_object (THREAD_ENTRY * thread_p, HEAP_SCANCACHE * upd_scancache, HEAP_CACHE_ATTRINFO * attr_info, OID * oid)
int process_set (THREAD_ENTRY * thread_p, DB_SET * set)
int process_value (THREAD_ENTRY * thread_p, DB_VALUE * value)

Public Static Attributes Documentation

variable compact_started

bool compact_started;

variable last_tran_index

int last_tran_index;

Public Functions Documentation

function boot_can_compact

bool boot_can_compact (
    THREAD_ENTRY * thread_p
) 

function boot_compact_db

int boot_compact_db (
    THREAD_ENTRY * thread_p,
    OID * class_oids,
    int n_classes,
    int space_to_process,
    int instance_lock_timeout,
    int class_lock_timeout,
    bool delete_old_repr,
    OID * last_processed_class_oid,
    OID * last_processed_oid,
    int * total_objects,
    int * failed_objects,
    int * modified_objects,
    int * big_objects,
    int * initial_last_repr_id
) 

function boot_compact_start

int boot_compact_start (
    THREAD_ENTRY * thread_p
) 

function boot_compact_stop

int boot_compact_stop (
    THREAD_ENTRY * thread_p
) 

function boot_heap_compact_pages

int boot_heap_compact_pages (
    THREAD_ENTRY * thread_p,
    OID * class_oid
) 

Public Static Functions Documentation

function desc_disk_to_attr_info

static int desc_disk_to_attr_info (
    THREAD_ENTRY * thread_p,
    OID * oid,
    RECDES * recdes,
    HEAP_CACHE_ATTRINFO * attr_info
) 

function is_class

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

function process_class

static int process_class (
    THREAD_ENTRY * thread_p,
    OID * class_oid,
    HFID * hfid,
    int max_space_to_process,
    int * instance_lock_timeout,
    int * space_to_process,
    OID * last_processed_oid,
    int * total_objects,
    int * failed_objects,
    int * modified_objects,
    int * big_objects
) 

function process_object

static int process_object (
    THREAD_ENTRY * thread_p,
    HEAP_SCANCACHE * upd_scancache,
    HEAP_CACHE_ATTRINFO * attr_info,
    OID * oid
) 

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
) 


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