Skip to content

File overflow_file.c

FileList > cubrid > src > storage > overflow_file.c

Go to the source code of this file

  • #include "overflow_file.h"
  • #include "config.h"
  • #include "error_manager.h"
  • #include "file_manager.h"
  • #include "heap_file.h"
  • #include "log_append.hpp"
  • #include "log_manager.h"
  • #include "memory_alloc.h"
  • #include "mvcc.h"
  • #include "page_buffer.h"
  • #include "slotted_page.h"
  • #include "storage_common.h"
  • #include <string.h>
  • #include "memory_wrapper.hpp"

Public Types

Type Name
enum OVERFLOW_DO_FUNC

Public Functions

Type Name
const VPID * overflow_delete (THREAD_ENTRY * thread_p, const VFID * ovf_vfid, const VPID * ovf_vpid)
int overflow_dump (THREAD_ENTRY * thread_p, FILE * fp, VPID * ovf_vpid)
void overflow_flush (THREAD_ENTRY * thread_p, const VPID * ovf_vpid)
SCAN_CODE overflow_get (THREAD_ENTRY * thread_p, const VPID * ovf_vpid, RECDES * recdes, MVCC_SNAPSHOT * mvcc_snapshot)
int overflow_get_capacity (THREAD_ENTRY * thread_p, const VPID * ovf_vpid, int * ovf_size, int * ovf_num_pages, int * ovf_overhead, int * ovf_free_space)
char * overflow_get_first_page_data (char * page_ptr)
int overflow_get_length (THREAD_ENTRY * thread_p, const VPID * ovf_vpid)
SCAN_CODE overflow_get_nbytes (THREAD_ENTRY * thread_p, const VPID * ovf_vpid, RECDES * recdes, int start_offset, int max_nbytes, int * remaining_length, MVCC_SNAPSHOT * mvcc_snapshot)
int overflow_insert (THREAD_ENTRY * thread_p, const VFID * ovf_vfid, VPID * ovf_vpid, RECDES * recdes, FILE_TYPE file_type)
int overflow_rv_link (THREAD_ENTRY * thread_p, LOG_RCV * rcv)
void overflow_rv_link_dump (FILE * fp, int length_ignore, void * data)
int overflow_rv_newpage_insert_redo (THREAD_ENTRY * thread_p, LOG_RCV * rcv)
int overflow_rv_newpage_link_undo (THREAD_ENTRY * thread_p, LOG_RCV * rcv)
void overflow_rv_page_dump (FILE * fp, int length, void * data)
int overflow_rv_page_update_redo (THREAD_ENTRY * thread_p, LOG_RCV * rcv)
int overflow_update (THREAD_ENTRY * thread_p, const VFID * ovf_vfid, const VPID * ovf_vpid, RECDES * recdes, FILE_TYPE file_type)

Public Static Functions

Type Name
int overflow_delete_internal (THREAD_ENTRY * thread_p, const VFID * ovf_vfid, VPID * vpid, PAGE_PTR pgptr)
int overflow_flush_internal (THREAD_ENTRY * thread_p, PAGE_PTR pgptr)
void overflow_next_vpid (const VPID * ovf_vpid, VPID * vpid, PAGE_PTR pgptr)
const VPID * overflow_traverse (THREAD_ENTRY * thread_p, const VFID * ovf_vfid, const VPID * ovf_vpid, OVERFLOW_DO_FUNC func)

Macros

Type Name
define OVERFLOW_ALLOCVPID_ARRAY_SIZE 64

Public Types Documentation

enum OVERFLOW_DO_FUNC

enum OVERFLOW_DO_FUNC {
    OVERFLOW_DO_DELETE,
    OVERFLOW_DO_FLUSH
};

Public Functions Documentation

function overflow_delete

const  VPID * overflow_delete (
    THREAD_ENTRY * thread_p,
    const  VFID * ovf_vfid,
    const  VPID * ovf_vpid
) 

function overflow_dump

int overflow_dump (
    THREAD_ENTRY * thread_p,
    FILE * fp,
    VPID * ovf_vpid
) 

function overflow_flush

void overflow_flush (
    THREAD_ENTRY * thread_p,
    const  VPID * ovf_vpid
) 

function overflow_get

SCAN_CODE overflow_get (
    THREAD_ENTRY * thread_p,
    const  VPID * ovf_vpid,
    RECDES * recdes,
    MVCC_SNAPSHOT * mvcc_snapshot
) 

function overflow_get_capacity

int overflow_get_capacity (
    THREAD_ENTRY * thread_p,
    const  VPID * ovf_vpid,
    int * ovf_size,
    int * ovf_num_pages,
    int * ovf_overhead,
    int * ovf_free_space
) 

function overflow_get_first_page_data

char * overflow_get_first_page_data (
    char * page_ptr
) 

function overflow_get_length

int overflow_get_length (
    THREAD_ENTRY * thread_p,
    const  VPID * ovf_vpid
) 

function overflow_get_nbytes

SCAN_CODE overflow_get_nbytes (
    THREAD_ENTRY * thread_p,
    const  VPID * ovf_vpid,
    RECDES * recdes,
    int start_offset,
    int max_nbytes,
    int * remaining_length,
    MVCC_SNAPSHOT * mvcc_snapshot
) 

function overflow_insert

int overflow_insert (
    THREAD_ENTRY * thread_p,
    const  VFID * ovf_vfid,
    VPID * ovf_vpid,
    RECDES * recdes,
    FILE_TYPE file_type
) 

int overflow_rv_link (
    THREAD_ENTRY * thread_p,
    LOG_RCV * rcv
) 

void overflow_rv_link_dump (
    FILE * fp,
    int length_ignore,
    void * data
) 

function overflow_rv_newpage_insert_redo

int overflow_rv_newpage_insert_redo (
    THREAD_ENTRY * thread_p,
    LOG_RCV * rcv
) 

int overflow_rv_newpage_link_undo (
    THREAD_ENTRY * thread_p,
    LOG_RCV * rcv
) 

function overflow_rv_page_dump

void overflow_rv_page_dump (
    FILE * fp,
    int length,
    void * data
) 

function overflow_rv_page_update_redo

int overflow_rv_page_update_redo (
    THREAD_ENTRY * thread_p,
    LOG_RCV * rcv
) 

function overflow_update

int overflow_update (
    THREAD_ENTRY * thread_p,
    const  VFID * ovf_vfid,
    const  VPID * ovf_vpid,
    RECDES * recdes,
    FILE_TYPE file_type
) 

Public Static Functions Documentation

function overflow_delete_internal

static int overflow_delete_internal (
    THREAD_ENTRY * thread_p,
    const  VFID * ovf_vfid,
    VPID * vpid,
    PAGE_PTR pgptr
) 

function overflow_flush_internal

static int overflow_flush_internal (
    THREAD_ENTRY * thread_p,
    PAGE_PTR pgptr
) 

function overflow_next_vpid

static void overflow_next_vpid (
    const  VPID * ovf_vpid,
    VPID * vpid,
    PAGE_PTR pgptr
) 

function overflow_traverse

static const  VPID * overflow_traverse (
    THREAD_ENTRY * thread_p,
    const  VFID * ovf_vfid,
    const  VPID * ovf_vpid,
    OVERFLOW_DO_FUNC func
) 

Macro Definition Documentation

define OVERFLOW_ALLOCVPID_ARRAY_SIZE

#define OVERFLOW_ALLOCVPID_ARRAY_SIZE `64`


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