#include <Weeder.H>
Public Member Functions | |
Weeder (CacheIntf::DebugLevel debug=CacheIntf::None) throw (SRPC::failure, FS::Failure) | |
bool | Weed (WeedArgs &args) throw (SRPC::failure, FS::Failure, FS::DoesNotExist, VestaLog::Error, VestaLog::Eof, InputError, SysError, ReposError) |
Private Member Functions | |
void | MarkPhase () throw (SRPC::failure, FS::Failure, FS::DoesNotExist, VestaLog::Error, VestaLog::Eof, InputError, SysError, ReposError) |
void | MarkWork () throw (SRPC::failure, FS::Failure, VestaLog::Error, VestaLog::Eof, SourceOrDerived::Fatal, ReposError) |
void | CopyGLtoPending (const PkgTbl *pkgTbl) throw (FS::Failure, VestaLog::Error) |
void | ScanLogOnce () throw (FS::Failure) |
void | MarkNode (CacheEntry::Index ci) throw (FS::Failure) |
void | ProcessNode (const GLNode &node) throw (FS::Failure) |
void | PrintRoot (const PkgBuild &root, const PkgTbl &pkgTbl, bool chosenRoot, bool freshRoot) throw () |
void | DeletionPhase () throw (SRPC::failure, FS::Failure, VestaLog::Error, VestaLog::Eof) |
PKPrefixTbl * | WeededPrefixes () throw (VestaLog::Error, FS::Failure) |
void | PruneGraphLog () throw (FS::Failure, VestaLog::Error, VestaLog::Eof) |
void | Recover () throw (SRPC::failure, FS::Failure) |
void | RecoverWeeded () throw (FS::Failure) |
void | WriteWeeded () throw (FS::Failure) |
void | RecoverMiscVars () throw (FS::Failure) |
void | WriteMiscVars () throw (FS::Failure) |
void | TimedMsg (char *msg, bool blankline=true, int level=CacheIntf::StatusMsgs) throw () |
Private Attributes | |
CacheIntf::DebugLevel | debug |
const WeedArgs * | args |
WeederC * | cache |
BitVector * | weeded |
time_t | startTime |
ShortId | disShortId |
RootTbl * | instrRoots |
RootTbl * | markedRoots |
BitVector * | initCIs |
BitVector * | marked |
BitVector * | wLeases |
BitVector * | glCIs |
VestaLogSeq | graphLogSeq |
int | newLogVer |
Text | logChkptFName |
std::ofstream | pendingGL |
int | markedCnt |
int | markedCntTotal |
GLNodeBuffer * | nodeBuff |
FILE * | disFP |
time_t | keepTime |
|
Definition at line 155 of file Weeder.C. References Config_GraphLogPath, NEW_CONSTR, and Recover(). |
|
|
Definition at line 766 of file Weeder.C. References cache, SourceOrDerived::checkpoint(), WeederC::CommitChkpt(), FS::Delete(), WeederC::EndMark(), SourceOrDerived::keepDerived(), newLogVer, PruneGraphLog(), BitVector::ResetAll(), TimedMsg(), Debug::Timestamp(), weeded, WeededPrefixes(), and WriteWeeded(). |
|
Definition at line 706 of file Weeder.C. Referenced by MarkWork(). |
|
Definition at line 266 of file Weeder.C. References args, cache, initCIs, instrRoots, WeedArgs::keepSecs, keepTime, MarkWork(), NEW, GatherWeedRoots::P(), WeederC::ResumeLeaseExp(), and WeederC::StartMark(). |
|
Definition at line 296 of file Weeder.C. References cache, BitVector::Cardinality(), Config_GLNodeBuffSize, Config_PendingGLFile, Config_WorkingGLFile, CopyGLtoPending(), disFP, WeederC::GetLeases(), glCIs, initCIs, instrRoots, marked, markedCnt, markedCntTotal, markedRoots, MarkNode(), NEW, NEW_CONSTR, BVIter::Next(), nodeBuff, BitVector::PrintAll(), WeederC::ResumeLeaseExp(), ReposRoots::Scan(), ScanLogOnce(), WeederC::SetHitFilter(), CacheIntf::StatusMsgs, TimedMsg(), Debug::Timestamp(), and weeded. Referenced by MarkPhase(). |
|
Definition at line 737 of file Weeder.C. References NullShortId, and Pathname::Print(). |
|
Definition at line 720 of file Weeder.C. References Derived::Indices::index, and CacheEntry::Indices::index. Referenced by ScanLogOnce(). |
|
|
Definition at line 166 of file Weeder.C. References RecoverMiscVars(), and RecoverWeeded(). |
|
Definition at line 1128 of file Weeder.C. References FS::Close(), Config_MiscVarsFile, disShortId, keepTime, CacheIntf::LogRecover, markedRoots, NEW_CONSTR, FS::OpenReadOnly(), RootTbl::Print(), FS::Read(), Table< K, V >::Default::Size(), sizeof_assert, startTime, and TimedMsg(). Referenced by Recover(). |
|
Definition at line 1078 of file Weeder.C. References FS::Close(), Config_WeededFile, CacheIntf::LogRecover, NEW, NEW_CONSTR, FS::OpenReadOnly(), TimedMsg(), and weeded. Referenced by Recover(). |
|
Definition at line 440 of file Weeder.C. References FS::AtEOF(), Text::chars(), GLNode::ci, FS::Close(), Config_PendingGLFile, Config_WorkingGLFile, GLNodeBuffer::flushedCnt, markedCnt, nodeBuff, FS::OpenForWriting(), FS::OpenReadOnly(), pendingGL, ProcessNode(), GLNodeBuffer::Put(), TimedMsg(), and CacheIntf::WeederScans. Referenced by MarkWork(). |
|
Definition at line 62 of file Weeder.C. References Debug::Timestamp(). Referenced by DeletionPhase(), MarkWork(), RecoverMiscVars(), RecoverWeeded(), ScanLogOnce(), WriteMiscVars(), and WriteWeeded(). |
|
Definition at line 204 of file Weeder.C. References WeedArgs::DoDeletions, and CacheIntf::StatusMsgs. Referenced by main(). |
|
Definition at line 839 of file Weeder.C. References GraphLog::Node::ci, VestaLogSeq::Close(), RecoveryReader::eof(), graphLogSeq, GraphLog::Entry::kind, GraphLog::Node::loc, NEW_CONSTR, GraphLog::NodeKind, VestaLogSeq::Open(), Table< K, V >::Default::Put(), and GraphLog::Entry::Recover(). Referenced by DeletionPhase(). |
|
Definition at line 1176 of file Weeder.C. References Text::chars(), FS::Close(), Config_MiscVarsFile, disShortId, keepTime, CacheIntf::LogFlush, markedRoots, AtomicFile::open(), RootTbl::Print(), Table< K, V >::Default::Size(), sizeof_assert, startTime, TimedMsg(), RootTbl::Write(), and FS::Write(). |
|
Definition at line 1107 of file Weeder.C. References BitVector::Cardinality(), Text::chars(), FS::Close(), Config_WeededFile, CacheIntf::LogFlush, AtomicFile::open(), BitVector::PrintAll(), TimedMsg(), weeded, and BitVector::Write(). Referenced by DeletionPhase(). |
|
Definition at line 74 of file Weeder.H. Referenced by MarkPhase(). |
|
Definition at line 75 of file Weeder.H. Referenced by DeletionPhase(), MarkPhase(), and MarkWork(). |
|
|
|
Definition at line 102 of file Weeder.H. Referenced by MarkWork(). |
|
Definition at line 80 of file Weeder.H. Referenced by RecoverMiscVars(), and WriteMiscVars(). |
|
Definition at line 92 of file Weeder.H. Referenced by MarkWork(). |
|
Definition at line 94 of file Weeder.H. Referenced by WeededPrefixes(). |
|
Definition at line 89 of file Weeder.H. Referenced by MarkPhase(), and MarkWork(). |
|
Definition at line 81 of file Weeder.H. Referenced by MarkPhase(), and MarkWork(). |
|
Definition at line 103 of file Weeder.H. Referenced by MarkPhase(), RecoverMiscVars(), and WriteMiscVars(). |
|
|
|
Definition at line 90 of file Weeder.H. Referenced by MarkWork(). |
|
Definition at line 99 of file Weeder.H. Referenced by MarkWork(), and ScanLogOnce(). |
|
Definition at line 100 of file Weeder.H. Referenced by MarkWork(). |
|
Definition at line 82 of file Weeder.H. Referenced by MarkWork(), RecoverMiscVars(), and WriteMiscVars(). |
|
Definition at line 95 of file Weeder.H. Referenced by DeletionPhase(). |
|
Definition at line 101 of file Weeder.H. Referenced by MarkWork(), and ScanLogOnce(). |
|
Definition at line 98 of file Weeder.H. Referenced by ScanLogOnce(). |
|
Definition at line 79 of file Weeder.H. Referenced by RecoverMiscVars(), and WriteMiscVars(). |
|
Definition at line 78 of file Weeder.H. Referenced by DeletionPhase(), MarkWork(), RecoverWeeded(), and WriteWeeded(). |
|
|