CUBRID Engine  latest
elo.c File Reference
#include "config.h"
#include <stdio.h>
#include <string.h>
#include <assert.h>
#include <stddef.h>
#include <errno.h>
#include <fcntl.h>
#include <sys/stat.h>
#include "elo.h"
#include "boot.h"
#include "dbtype.h"
#include "error_manager.h"
#include "es.h"
#include "lob_locator.hpp"
#include "object_primitive.h"
#include "object_representation.h"
#include "storage_common.h"
Include dependency graph for elo.c:

Go to the source code of this file.

Macros

#define ELO_NEEDS_TRANSACTION(e)   ((e)->es_type == ES_OWFS || (e)->es_type == ES_POSIX)
 

Functions

int elo_create (DB_ELO *elo)
 
void elo_init_structure (DB_ELO *elo)
 
int elo_copy_structure (const DB_ELO *elo, DB_ELO *dest)
 
void elo_free_structure (DB_ELO *elo)
 
int elo_copy (DB_ELO *elo, DB_ELO *dest)
 
int elo_delete (DB_ELO *elo, bool force_delete)
 
off_t elo_size (DB_ELO *elo)
 
ssize_t elo_read (const DB_ELO *elo, off_t pos, void *buf, size_t count)
 
ssize_t elo_write (DB_ELO *elo, off_t pos, const void *buf, size_t count)
 

Variables

static const DB_ELO elo_Initializer = { -1LL, NULL, NULL, ELO_NULL, ES_NONE }
 

Macro Definition Documentation

#define ELO_NEEDS_TRANSACTION (   e)    ((e)->es_type == ES_OWFS || (e)->es_type == ES_POSIX)

Definition at line 69 of file elo.c.

Referenced by elo_copy(), elo_create(), and elo_delete().

Function Documentation

int elo_copy_structure ( const DB_ELO elo,
DB_ELO dest 
)
void elo_free_structure ( DB_ELO elo)

Definition at line 186 of file elo.c.

References db_private_free_and_init, elo_init_structure(), db_elo::locator, db_elo::meta_data, and NULL.

Referenced by db_elo_free_structure(), mr_freemem_elo(), and pr_clear_value().

Here is the caller graph for this function:

void elo_init_structure ( DB_ELO elo)
ssize_t elo_read ( const DB_ELO elo,
off_t  pos,
void *  buf,
size_t  count 
)

Definition at line 453 of file elo.c.

References assert, ASSERT_ERROR, ELO_FBO, es_read_file(), db_elo::locator, NO_ERROR, NULL, and db_elo::type.

Referenced by db_elo_read().

Here is the caller graph for this function:

off_t elo_size ( DB_ELO elo)

Definition at line 421 of file elo.c.

References assert, ELO_FBO, es_get_file_size(), db_elo::locator, NULL, db_elo::size, and db_elo::type.

Referenced by db_elo_size().

Here is the caller graph for this function:

ssize_t elo_write ( DB_ELO elo,
off_t  pos,
const void *  buf,
size_t  count 
)

Definition at line 479 of file elo.c.

References assert, ASSERT_ERROR, cubregex::count(), ELO_FBO, es_write_file(), db_elo::locator, NULL, db_elo::size, and db_elo::type.

Referenced by db_elo_write().

Here is the caller graph for this function:

Variable Documentation

const DB_ELO elo_Initializer = { -1LL, NULL, NULL, ELO_NULL, ES_NONE }
static

Definition at line 67 of file elo.c.

Referenced by elo_init_structure().