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

Go to the source code of this file.

Classes

struct  log_zip
 

Macros

#define MAKE_ZIP_LEN(length)   ((length) | 0x80000000)
 
#define GET_ZIP_LEN(length)   ((length) & ~(0x80000000))
 
#define ZIP_CHECK(length)   (((length) & 0x80000000) ? true : false)
 
#define LOG_ZIP_BUF_SIZE(length)   (LZ4_compressBound(length) + sizeof(LOG_ZIP_SIZE_T))
 
#define LOG_ZIP_SIZE_T   int
 

Typedefs

typedef struct log_zip LOG_ZIP
 

Functions

LOG_ZIPlog_zip_alloc (LOG_ZIP_SIZE_T size)
 
void log_zip_free (LOG_ZIP *log_zip)
 
bool log_zip (LOG_ZIP *log_zip, LOG_ZIP_SIZE_T length, const void *data)
 
bool log_unzip (LOG_ZIP *log_unzip, LOG_ZIP_SIZE_T length, void *data)
 
bool log_diff (LOG_ZIP_SIZE_T undo_length, const void *undo_data, LOG_ZIP_SIZE_T redo_length, void *redo_data)
 

Macro Definition Documentation

#define LOG_ZIP_BUF_SIZE (   length)    (LZ4_compressBound(length) + sizeof(LOG_ZIP_SIZE_T))

Definition at line 43 of file log_compress.h.

Referenced by log_zip(), and log_zip_alloc().

#define LOG_ZIP_SIZE_T   int

Definition at line 46 of file log_compress.h.

Referenced by log_diff(), log_unzip(), log_zip(), and log_zip_alloc().

#define MAKE_ZIP_LEN (   length)    ((length) | 0x80000000)

Definition at line 33 of file log_compress.h.

Referenced by prior_lsa_gen_undoredo_record_from_crumbs().

Typedef Documentation

typedef struct log_zip LOG_ZIP

Definition at line 51 of file log_compress.h.

Function Documentation

bool log_diff ( LOG_ZIP_SIZE_T  undo_length,
const void *  undo_data,
LOG_ZIP_SIZE_T  redo_length,
void *  redo_data 
)

Definition at line 201 of file log_compress.c.

References assert, i, LOG_ZIP_SIZE_T, NULL, and p.

Referenced by la_get_zipped_data(), log_rv_redo_record(), and prior_lsa_gen_undoredo_record_from_crumbs().

Here is the caller graph for this function: