#include <VestaLogPrivate.H>
Public Types | |
enum | State { initial = 0, recovering, recovered, ready, logging, bad } |
Public Member Functions | |
VLogBlock * | balloc () throw () |
void | bfree (VLogBlock *b) throw () |
void | extendCur () throw (VestaLog::Eof, VestaLog::Error) |
void | makeBytesAvail () throw (VestaLog::Eof, VestaLog::Error) |
void | writeCur () throw (VestaLog::Error) |
void | makeSpaceAvail () throw (VestaLog::Error) |
void | eraseUncommitted (int fd) throw (VestaLog::Error) |
VLogBlock * | readBlock () throw (VestaLog::Error) |
Public Attributes | |
bool | checkpointing |
bool | readonly |
bool | bakckp |
bool | hitEOF |
bool | usePocket |
bool | commUsePocket |
int | nesting |
State | state |
char * | directory |
char * | directory2 |
int | version |
int | ccVersion |
int | ccVersion2 |
int | fd |
int | fd2 |
int | lockfd |
int | lockfd2 |
int | curSeq |
int | curLen |
int | nextSeq |
int | nextPhy |
int | commSeq |
int | commPhy |
int | commPocketPhy |
VLogBlock * | cur |
VLogBlock * | last |
VLogBlock * | |
VLogBlock * | free |
|
Definition at line 81 of file VestaLogPrivate.H. |
|
Definition at line 112 of file VestaLogPrivate.H. References free, NEW, and VLogBlock::next. Referenced by VestaLog::loggingBegin(), and readBlock(). |
|
Definition at line 122 of file VestaLogPrivate.H. References free. Referenced by makeBytesAvail(), and readBlock(). |
|
Definition at line 573 of file VestaLog.C. References VLogBlock::data, Basics::errno_Text(), VLogBlock::data_block::setLen(), VLogBlock::data_block::setSeq(), and VLogBlock::data_block::setVer(). Referenced by VestaLog::abort(), and VestaLog::loggingBegin(). |
|
Definition at line 354 of file VestaLog.C. References VLogBlock::data, VLogBlock::data_block::getSeq(), VLogBlock::data_block::getVer(), VLogBlock::next, VLogBlock::phy, VLogBlock::pocketPhy, and VLogBlock::tailCommitted. Referenced by makeBytesAvail(). |
|
Definition at line 439 of file VestaLog.C. References bfree(), VLogBlock::data_block::bytes, cur, curLen, curSeq, VLogBlock::data, extendCur(), VLogBlock::data_block::getLen(), hitEOF, last, VLogBlock::next, nextPhy, VLogBlock::phy, pocket, VLogBlock::pocketPhy, readBlock(), and VLogBlock::tailCommitted. Referenced by VestaLog::eof(). |
|
Definition at line 857 of file VestaLog.C. References VLogBlock::data_block::bytes, commPhy, commPocketPhy, commUsePocket, cur, curLen, curSeq, VLogBlock::data, VLogBlock::phy, VLogBlock::pocketPhy, VLogBlock::data_block::setLen(), VLogBlock::data_block::setSeq(), VLogBlock::data_block::setVer(), usePocket, and writeCur(). |
|
Definition at line 268 of file VestaLog.C. References bad, balloc(), bfree(), VLogBlock::data, Basics::errno_Text(), fd, fd2, VLogBlock::data_block::getLen(), VLogBlock::data_block::getSeq(), VLogBlock::data_block::getVer(), hitEOF, VLogBlock::data_block::setLen(), VLogBlock::data_block::setSeq(), VLogBlock::data_block::setVer(), and state. Referenced by makeBytesAvail(). |
|
Definition at line 828 of file VestaLog.C. References bad, cur, VLogBlock::data, Basics::errno_Text(), fd, fd2, VLogBlock::data_block::getVer(), VLogBlock::phy, VLogBlock::pocketPhy, VLogBlock::data_block::setVer(), state, and usePocket. Referenced by VestaLog::commit(), and makeSpaceAvail(). |
|
Definition at line 84 of file VestaLogPrivate.H. Referenced by VestaLog::checkpointEnd(). |
|
Definition at line 93 of file VestaLogPrivate.H. Referenced by VestaLog::checkpointAbort(), and VestaLog::checkpointEnd(). |
|
Definition at line 94 of file VestaLogPrivate.H. Referenced by VestaLog::checkpointEnd(). |
|
Definition at line 82 of file VestaLogPrivate.H. Referenced by VestaLog::checkpointAbort(), and VestaLog::checkpointEnd(). |
|
Definition at line 104 of file VestaLogPrivate.H. Referenced by VestaLog::abort(), VestaLog::commit(), VestaLog::loggingBegin(), makeSpaceAvail(), and VestaLog::nextLog(). |
|
Definition at line 105 of file VestaLogPrivate.H. Referenced by VestaLog::abort(), VestaLog::commit(), VestaLog::loggingBegin(), makeSpaceAvail(), and VestaLog::nextLog(). |
|
Definition at line 103 of file VestaLogPrivate.H. Referenced by VestaLog::abort(), VestaLog::commit(), VestaLog::loggingBegin(), and VestaLog::nextLog(). |
|
Definition at line 87 of file VestaLogPrivate.H. Referenced by VestaLog::abort(), VestaLog::commit(), VestaLog::loggingBegin(), makeSpaceAvail(), and VestaLog::nextLog(). |
|
Definition at line 106 of file VestaLogPrivate.H. Referenced by VestaLog::abort(), VestaLog::close(), VestaLog::commit(), VestaLog::loggingBegin(), makeBytesAvail(), makeSpaceAvail(), VestaLog::nextLog(), and writeCur(). |
|
Definition at line 100 of file VestaLogPrivate.H. Referenced by VestaLog::abort(), VestaLog::commit(), VestaLog::loggingBegin(), makeBytesAvail(), makeSpaceAvail(), and VestaLog::nextLog(). |
|
Definition at line 99 of file VestaLogPrivate.H. Referenced by VestaLog::abort(), VestaLog::commit(), VestaLog::loggingBegin(), makeBytesAvail(), makeSpaceAvail(), and VestaLog::nextLog(). |
|
Definition at line 90 of file VestaLogPrivate.H. Referenced by VestaLog::checkpointAbort(), VestaLog::checkpointEnd(), VestaLog::close(), VestaLog::nextLog(), and VestaLog::openCheckpoint(). |
|
Definition at line 91 of file VestaLogPrivate.H. Referenced by VestaLog::checkpointEnd(), and VestaLog::nextLog(). |
|
Definition at line 95 of file VestaLogPrivate.H. Referenced by VestaLog::abort(), VestaLog::close(), VestaLog::commit(), VestaLog::loggingBegin(), VestaLog::nextLog(), readBlock(), and writeCur(). |
|
Definition at line 96 of file VestaLogPrivate.H. Referenced by VestaLog::abort(), VestaLog::close(), VestaLog::commit(), VestaLog::loggingBegin(), VestaLog::nextLog(), readBlock(), and writeCur(). |
|
Definition at line 110 of file VestaLogPrivate.H. Referenced by balloc(), bfree(), VestaLog::close(), VestaLog::loggingBegin(), and VestaLog::nextLog(). |
|
Definition at line 85 of file VestaLogPrivate.H. Referenced by VestaLog::loggingBegin(), makeBytesAvail(), VestaLog::nextLog(), and readBlock(). |
|
Definition at line 108 of file VestaLogPrivate.H. Referenced by VestaLog::close(), VestaLog::loggingBegin(), makeBytesAvail(), and VestaLog::nextLog(). |
|
Definition at line 97 of file VestaLogPrivate.H. Referenced by VestaLog::close(). |
|
Definition at line 98 of file VestaLogPrivate.H. Referenced by VestaLog::close(). |
|
Definition at line 88 of file VestaLogPrivate.H. Referenced by VestaLog::abort(), VestaLog::commit(), VestaLog::nesting(), VestaLog::nextLog(), and VestaLog::start(). |
|
Definition at line 102 of file VestaLogPrivate.H. Referenced by VestaLog::loggingBegin(), makeBytesAvail(), and VestaLog::nextLog(). |
|
Definition at line 101 of file VestaLogPrivate.H. Referenced by VestaLog::nextLog(). |
|
Definition at line 109 of file VestaLogPrivate.H. Referenced by VestaLog::close(), VestaLog::loggingBegin(), makeBytesAvail(), and VestaLog::nextLog(). |
|
Definition at line 83 of file VestaLogPrivate.H. Referenced by VestaLog::loggingBegin(), and VestaLog::nextLog(). |
|
Definition at line 89 of file VestaLogPrivate.H. Referenced by VestaLog::abort(), VestaLog::checkpointAbort(), VestaLog::checkpointEnd(), VestaLog::close(), VestaLog::commit(), VestaLog::eof(), VestaLog::loggingBegin(), VestaLog::logVersion(), VestaLog::nextLog(), VestaLog::openCheckpoint(), readBlock(), VestaLog::start(), VestaLog::VestaLog(), and writeCur(). |
|
Definition at line 86 of file VestaLogPrivate.H. Referenced by VestaLog::abort(), VestaLog::commit(), VestaLog::loggingBegin(), makeSpaceAvail(), VestaLog::nextLog(), and writeCur(). |
|
Definition at line 92 of file VestaLogPrivate.H. Referenced by VestaLog::checkpointAbort(), VestaLog::checkpointEnd(), VestaLog::logVersion(), VestaLog::nextLog(), and VestaLog::openCheckpoint(). |