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¶
variable class_objects¶
variable failed_objects¶
variable total_objects¶
Public Functions Documentation¶
function compactdb¶
function get_class_mops¶
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¶
function compact_usage¶
function compactdb_start¶
static int compactdb_start (
bool verbose_flag,
char * input_filename,
char ** input_class_name,
int input_class_length
)
function disk_final¶
function disk_init¶
function disk_update_instance¶
function free_recdes¶
function is_class¶
function process_class¶
function process_object¶
static void process_object (
THREAD_ENTRY * thread_p,
DESC_OBJ * desc_obj,
OID * obj_oid,
bool verbose_flag
)
function process_set¶
function process_value¶
function update_indexes¶
The documentation for this class was generated from the following file cubrid/src/executables/compactdb.c