CUBRID Engine  latest
double_write_buffer.h File Reference
#include "file_io.h"
#include "log_lsa.hpp"
Include dependency graph for double_write_buffer.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  double_write_slot
 

Typedefs

typedef struct double_write_slot DWB_SLOT
 

Functions

bool dwb_is_created (void)
 
int dwb_create (THREAD_ENTRY *thread_p, const char *dwb_path_p, const char *db_name_p)
 
int dwb_recreate (THREAD_ENTRY *thread_p)
 
int dwb_load_and_recover_pages (THREAD_ENTRY *thread_p, const char *dwb_path_p, const char *db_name_p)
 
int dwb_destroy (THREAD_ENTRY *thread_p)
 
char * dwb_get_volume_name (void)
 
int dwb_flush_force (THREAD_ENTRY *thread_p, bool *all_sync)
 
int dwb_read_page (THREAD_ENTRY *thread_p, const VPID *vpid, void *io_page, bool *success)
 
int dwb_set_data_on_next_slot (THREAD_ENTRY *thread_p, FILEIO_PAGE *io_page_p, bool can_wait, DWB_SLOT **p_dwb_slot)
 
int dwb_add_page (THREAD_ENTRY *thread_p, FILEIO_PAGE *io_page_p, VPID *vpid, DWB_SLOT **p_dwb_slot)
 

Typedef Documentation

typedef struct double_write_slot DWB_SLOT

Definition at line 32 of file double_write_buffer.h.

Function Documentation

int dwb_create ( THREAD_ENTRY thread_p,
const char *  dwb_path_p,
const char *  db_name_p 
)
int dwb_destroy ( THREAD_ENTRY thread_p)

Definition at line 3299 of file double_write_buffer.c.

References dwb_destroy_internal(), dwb_ends_structure_modification(), DWB_IS_CREATED, dwb_starts_structure_modification(), and NO_ERROR.

Referenced by logpb_copy_database(), and xboot_shutdown_server().

Here is the caller graph for this function:

char* dwb_get_volume_name ( void  )

Definition at line 3336 of file double_write_buffer.c.

References dwb_is_created(), dwb_Volume_name, and NULL.

int dwb_set_data_on_next_slot ( THREAD_ENTRY thread_p,
FILEIO_PAGE io_page_p,
bool  can_wait,
DWB_SLOT **  p_dwb_slot 
)

Definition at line 2657 of file double_write_buffer.c.

References assert, dwb_acquire_next_slot(), dwb_set_slot_data(), and NO_ERROR.

Referenced by dwb_add_page(), and pgbuf_bcb_flush_with_wal().

Here is the caller graph for this function: