File storage_common.c
FileList > cubrid > src > storage > storage_common.c
Go to the source code of this file
#include <stdlib.h>
#include <assert.h>
#include "config.h"
#include "storage_common.h"
#include "memory_alloc.h"
#include "error_manager.h"
#include "system_parameter.h"
#include "environment_variable.h"
#include "file_io.h"
#include "tz_support.h"
#include "db_date.h"
#include "dbtype.h"
#include "memory_wrapper.hpp"
Public Attributes
| Type |
Name |
| PGLENGTH |
db_Io_page_size = (16 \* [**ONE\_K**](porting_8h.md#define-one_k))
|
| PGLENGTH |
db_Log_page_size = (16 \* [**ONE\_K**](porting_8h.md#define-one_k))
|
| PGLENGTH |
db_User_page_size = (16 \* [**ONE\_K**](porting_8h.md#define-one_k)) - ([**sizeof**](broker__monitor_8c.md#function-timeout) ([**FILEIO\_PAGE\_RESERVED**](file__io_8h.md#typedef-fileio_page_reserved)) + [**sizeof**](broker__monitor_8c.md#function-timeout) ([**FILEIO\_PAGE\_WATERMARK**](file__io_8h.md#typedef-fileio_page_watermark)))
|
Public Functions
| Type |
Name |
| char * |
btid_to_string (char * buf, int buf_size, BTID * btid)
|
| PGLENGTH |
db_network_page_size (void)
|
| void |
db_print_data (DB_TYPE type, DB_DATA * data, FILE * fd)
|
| int |
db_set_page_size (PGLENGTH io_page_size, PGLENGTH log_page_size)
|
| char * |
hfid_to_string (char * buf, int buf_size, HFID * hfid)
|
| char * |
oid_to_string (char * buf, int buf_size, OID * oid)
|
| int |
recdes_allocate_data_area (RECDES * rec, int size)
|
| void |
recdes_free_data_area (RECDES * rec)
|
| void |
recdes_set_data_area (RECDES * rec, char * data, int size)
|
| char * |
vfid_to_string (char * buf, int buf_size, VFID * vfid)
|
| char * |
vpid_to_string (char * buf, int buf_size, VPID * vpid)
|
Public Static Functions
Macros
| Type |
Name |
| define |
RESERVED_SIZE_IN_PAGE ([**sizeof**](broker__monitor_8c.md#function-timeout) ([**FILEIO\_PAGE\_RESERVED**](file__io_8h.md#typedef-fileio_page_reserved)) + [**sizeof**](broker__monitor_8c.md#function-timeout) ([**FILEIO\_PAGE\_WATERMARK**](file__io_8h.md#typedef-fileio_page_watermark)))
|
Public Attributes Documentation
variable db_Io_page_size
PGLENGTH db_Io_page_size;
variable db_Log_page_size
PGLENGTH db_Log_page_size;
variable db_User_page_size
PGLENGTH db_User_page_size;
Public Functions Documentation
function btid_to_string
char * btid_to_string (
char * buf,
int buf_size,
BTID * btid
)
function db_network_page_size
PGLENGTH db_network_page_size (
void
)
function db_print_data
void db_print_data (
DB_TYPE type,
DB_DATA * data,
FILE * fd
)
function db_set_page_size
int db_set_page_size (
PGLENGTH io_page_size,
PGLENGTH log_page_size
)
function hfid_to_string
char * hfid_to_string (
char * buf,
int buf_size,
HFID * hfid
)
function oid_to_string
char * oid_to_string (
char * buf,
int buf_size,
OID * oid
)
function recdes_allocate_data_area
int recdes_allocate_data_area (
RECDES * rec,
int size
)
function recdes_free_data_area
void recdes_free_data_area (
RECDES * rec
)
function recdes_set_data_area
void recdes_set_data_area (
RECDES * rec,
char * data,
int size
)
function vfid_to_string
char * vfid_to_string (
char * buf,
int buf_size,
VFID * vfid
)
function vpid_to_string
char * vpid_to_string (
char * buf,
int buf_size,
VPID * vpid
)
Public Static Functions Documentation
function find_valid_page_size
static PGLENGTH find_valid_page_size (
PGLENGTH page_size
)
Macro Definition Documentation
define RESERVED_SIZE_IN_PAGE
#define RESERVED_SIZE_IN_PAGE `( sizeof ( FILEIO_PAGE_RESERVED ) + sizeof ( FILEIO_PAGE_WATERMARK ))`
The documentation for this class was generated from the following file cubrid/src/storage/storage_common.c