db.c File Reference

#include "config.h"
#include <sys/types.h>
#include <errno.h>
#include <stddef.h>
#include <stdlib.h>
#include <string.h>
#include "db_int.h"
#include "db_page.h"
#include "db_shash.h"
#include "db_swap.h"
#include "btree.h"
#include "db_am.h"
#include "hash.h"
#include "lock.h"
#include "log.h"
#include "mp.h"
#include "qam.h"
#include "common_ext.h"

Go to the source code of this file.

Defines

#define BACKUP_PREFIX   "__db."
#define DB_FILE_SETUP_CREATE   0x01
#define DB_FILE_SETUP_ZERO   0x02
#define IS_SUBDB_SETUP   (meta_pgno != PGNO_BASE_MD)
#define MAX_LSN_TO_TEXT   21
#define OKFLAGS

Enumerations

enum  mu_action { MU_REMOVE, MU_RENAME, MU_OPEN }

Functions

static int __db_file_setup (DB *dbp, const char *name, u_int32_t flags, int mode, db_pgno_t meta_pgno, int *retflags)
static int __db_master_update (DB *mdbp, const char *subdb, u_int32_t type, db_pgno_t *meta_pgnop, mu_action action, const char *newname, u_int32_t flags)
static int __db_metabegin (DB *dbp, DB_LOCK *lockp)
static int __db_metaend (DB *dbp, DB_LOCK *lockp, int commit, callback, void *cookie)
static int __db_refresh (DB *dbp)
static int __db_remove_callback (DB *dbp, void *cookie)
static int __db_set_pgsize (DB *dbp, DB_FH *fhp, char *name)
static int __db_subdb_remove (DB *dbp, const char *name, const char *subdb)
static int __db_subdb_rename (DB *dbp, const char *name, const char *subdb, const char *newname)
static int __db_subdb_rename __P ((DB *, const char *, const char *, const char *))
static int __db_subdb_remove __P ((DB *, const char *, const char *))
static int __db_set_pgsize __P ((DB *, DB_FH *, char *))
static int __db_remove_callback __P ((DB *, void *))
static int __db_refresh __P ((DB *))
static int __db_metaend __P ((DB *, DB_LOCK *, int, int(*)(DB *, void *), void *))
static int __db_metabegin __P ((DB *, DB_LOCK *))
static int __db_master_update __P ((DB *, const char *, u_int32_t, db_pgno_t *, mu_action, const char *, u_int32_t))
static int __db_file_setup __P ((DB *, const char *, u_int32_t, int, db_pgno_t, int *))
int CDB___db_backup_name (DB_ENV *dbenv, const char *name, char **backup, DB_LSN *lsn)
int CDB___db_close (DB *dbp, u_int32_t flags)
int CDB___db_dbenv_setup (DB *dbp, const char *name, u_int32_t flags)
int CDB___db_dbopen (DB *dbp, const char *name, u_int32_t flags, int mode, db_pgno_t meta_pgno)
int CDB___db_log_page (DB *dbp, const char *name, DB_LSN *lsn, db_pgno_t pgno, PAGE *page)
int CDB___db_master_open (DB *subdbp, const char *name, u_int32_t flags, int mode, DB **dbpp)
int CDB___db_open (DB *dbp, const char *name, const char *subdb, DBTYPE type, u_int32_t flags, int mode)
int CDB___db_remove (DB *dbp, const char *name, const char *subdb, u_int32_t flags)
int CDB___db_rename (DB *dbp, const char *filename, const char *subdb, const char *newname, u_int32_t flags)

Variables

static const char revid [] = "$Id: db_8c.html,v 1.1 2008/06/08 10:16:31 sebdiaz Exp $"


Generated on Sun Jun 8 10:56:43 2008 for GNUmifluz by  doxygen 1.5.5