BDB

Collaboration diagram for BDB:


Detailed Description

Berkeley DB support API.


Modules

 BDB library field types
 BDB library BLOB support
 BDB library BLOB Cache
 BDB library files and cursors
 BDB library map templates
 BDB library utilities
 BDB library queries

Classes

class  CBDB_CheckPointThread
 Transaction checkpoint / memptrickle thread. More...
class  CBDB_Env
 BDB environment object a collection including support for some or all of caching, locking, logging and transaction subsystems. More...
class  CBDB_Exception
 Base BDB exception class. More...
class  CBDB_StrErrAdapt
 Auxiliary exception class to wrap up Berkeley DB strerror function. More...
class  CBDB_ErrnoException
 BDB errno exception class. More...
class  CBDB_LibException
 BDB library exception. More...
class  CBDB_Transaction
 BDB transaction object. More...

Defines

#define BDB_THROW(errcode, message)
#define BDB_ERRNO_THROW(errnum, message)
#define BDB_CHECK(errnum, x_db_object__)

Functions

void BDB_RecoverEnv (const string &path, bool fatal_recover)
 Run Berkeley DB recovery in private environment.


Define Documentation

#define BDB_CHECK errnum,
x_db_object__   ) 
 

Value:

do { \
        if ( errnum ) { \
            std::string message = "BerkeleyDB error: "; \
            message.append(CBDB_StrErrAdapt::GetErrCodeString(errnum)); \
            if (x_db_object__) { \
                message.append(" Object:'"); \
                message.append(x_db_object__); \
                message.append("'"); \
            } \
            BDB_ERRNO_THROW(errnum, message); \
        } \
    } while (0)

Definition at line 190 of file bdb_expt.hpp.

Referenced by CBDB_Env::CBDB_Env(), CBDB_Env::CleanLog(), CBDB_Env::Close(), CBDB_Transaction::Commit(), CBDB_RawFile::CompactEx(), CBDB_RawFile::CountRecs(), CBDB_RawFile::CreateCursor(), CBDB_Env::CreateTxn(), CBDB_Env::DeadLockDetect(), CBDB_File::Delete(), CBDB_File::DeleteCursor(), CBDB_LobFile::Fetch(), CBDB_Env::ForceRemove(), CBDB_Env::ForceTransactionCheckpoint(), CBDB_RawFile::GetBtreeMinKeysPerPage(), CBDB_LobFile::GetData(), CBDB_Env::GetMaxLocks(), CBDB_Env::GetMpMmapSize(), CBDB_RawFile::GetPageSize(), db_multimap< K, T >::insert(), CBDB_Env::JoinEnv(), CBDB_Env::LogFlush(), CBDB_Env::LsnReset(), CBDB_Env::LsnResetForMemLog(), CBDB_Env::MempSync(), CBDB_Env::MempTrickle(), CBDB_Env::MutexGetFree(), CBDB_Env::MutexGetIncrement(), CBDB_Env::MutexGetMax(), CBDB_Env::MutexSetIncrement(), CBDB_Env::MutexSetMax(), CBDB_Env::Open(), CBDB_Env::OpenConcurrentDB(), CBDB_Env::OpenPrivate(), CBDB_Env::OpenWithTrans(), CBDB_Env::PrintLockStat(), CBDB_Env::PrintMemStat(), CBDB_Env::PrintMutexStat(), CBDB_RawFile::PrintStat(), CBDB_BLobStream::Read(), CBDB_BlobReaderWriter::Read(), CBDB_File::ReadCursor(), CBDB_RawFile::Rename(), CBDB_RawFile::Reopen(), CBDB_RawFile::SafeTruncate(), CLDS_Object::SaveObject(), CBDB_RawFile::SetCacheSize(), CBDB_Env::SetCacheSize(), CBDB_IdFile::SetCmp(), CBDB_File::SetCmp(), CBDB_LobFile::SetCmp(), CBDB_RawFile::SetHash(), CBDB_IdBlobFile::SetHash(), CBDB_Env::SetLkDetect(), CBDB_Env::SetLockTimeout(), CBDB_Env::SetLogAutoRemove(), CBDB_Env::SetLogBSize(), CBDB_Env::SetLogFileMax(), CBDB_Env::SetLogInMemory(), CBDB_Env::SetLogRegionMax(), CBDB_Env::SetMaxLockers(), CBDB_Env::SetMaxLockObjects(), CBDB_Env::SetMaxLocks(), CBDB_Env::SetMpMaxWrite(), CBDB_Env::SetMpMmapSize(), CBDB_Env::SetTasSpins(), CBDB_Env::SetTransactionMax(), CBDB_Env::SetTransactionTimeout(), CBDB_RawFile::Sync(), CBDB_Env::TransactionCheckpoint(), CBDB_RawFile::Truncate(), CBDB_BLobStream::Write(), CBDB_BlobReaderWriter::Write(), CBDB_Transaction::x_Abort(), CBDB_RawFile::x_Close(), CBDB_RawFile::x_CreateDB(), CBDB_File::x_Fetch(), CBDB_RawFile::x_Open(), and CBDB_LobFile::x_Put().

#define BDB_ERRNO_THROW errnum,
message   ) 
 

Value:

Definition at line 183 of file bdb_expt.hpp.

Referenced by CJobQueueCleanerThread::DoJob(), and CBDB_FileCursor::KeyDupCount().

#define BDB_THROW errcode,
message   ) 
 

Value:

throw CBDB_LibException(DIAG_COMPILE_INFO, 0, CBDB_LibException::errcode, \
                            (message))

Definition at line 178 of file bdb_expt.hpp.

Referenced by CBDB_ExtBlobMap::Add(), CBDB_RangeMap< TBV >::AddRange(), BDB_RecoverEnv(), CBDB_Cache::BlobCheckIn(), CBDB_Transaction::CastTransaction(), CBDB_Field::CopyFrom(), CBDB_FieldFactory::Create(), CBDB_RawFile::CreateCursor(), CBDB_FileCursor::Delete(), CBDB_FileDumper::Dump(), CBDB_CacheIWriter::Flush(), CBDB_ExtBlobStore< TBV >::Flush(), CBDB_ExtBlobMap::GetBlobLoc(), IBDB_FieldConvert::GetInt(), CBDB_QueryNode::GetLogicType(), CBDB_Cache::GetNextBlobId(), CBDB_QueryNode::GetOperatorType(), IBDB_FieldConvert::GetUint(), CBDB_FileCursor::KeyDupCount(), CBDB_CacheIWriter::OpenOverflowFile(), CBDB_FieldLString::operator=(), CBDB_FieldFixedByteString::operator=(), CBDB_FieldString::operator=(), CBDB_ConfigStructureParser::ParseConfigFile(), CBDB_ExtBlobStore< TBV >::ReadBlob(), CBDB_File::ReadCursor(), CBDB_RawFile::Reopen(), CBDB_ExtBlobStore< TBV >::Save(), CBDB_FieldLString::Set(), CBDB_FieldString::Set(), CBDB_FileCursor::SetCondition(), IBDB_FieldConvert::SetDouble(), IBDB_FieldConvert::SetFloat(), IBDB_FieldConvert::SetInt(), CBDB_RawFile::SetPageSize(), CBDB_FieldLString::SetStdString(), IBDB_FieldConvert::SetStdString(), IBDB_FieldConvert::SetString(), IBDB_FieldConvert::SetUint(), CBDB_ExtBlobStore< TBV >::StoreBlob(), CBDB_FileCursor::Update(), CBDB_FileCursor::UpdateBlob(), CBDB_File::WriteCursor(), CBDB_Cache::WriteOverflow(), CBDB_File::x_CheckConstructBuffers(), CBDB_RawFile::x_FetchBufferDecompress(), CBDB_Cache::x_Store(), CBDB_CacheIWriter::x_WriteOverflow(), yyerror(), and CBDB_RawFile::~CBDB_RawFile().


Function Documentation

void BDB_RecoverEnv const string &  path,
bool  fatal_recover
 

Run Berkeley DB recovery in private environment.

Derived from db_recover.

Definition at line 1074 of file bdb_env.cpp.

References BDB_THROW.

Referenced by CBDB_Cache::Open().


Generated on Mon Dec 7 16:02:07 2009 for NCBI C++ ToolKit by  doxygen 1.4.6
Modified on Mon Dec 07 16:24:35 2009 by modify_doxy.py rev. 173732