/* * Copyright 1995, 2009 Perforce Software. All rights reserved. * * This file is part of Perforce - the FAST SCM System. */ class JnlTracker { public: JnlTracker(); enum Kind { MIDDLE, END }; // Returns 1 if at a consistency point, 0 otherwise int Marker( long pid, Kind kind ); int MarkerCount( Kind kind ) const { return markcnt[ kind ]; } int ConsistentCount() const { return consistentcnt; } int MaxCount() const { return maxpids; } int XactCount() const { return npids; } int AtStartOfRecord() const { return scanstate == 0; } void ScanJournal( const char *, int, const char **xact = 0 ); void Clear(); void Restart() { npids = 0; } private: IntArray pids; int npids; int markcnt[2]; int consistentcnt; int maxpids; // for journal scanning int scanstate; int scanpid; Kind scankind; };
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#1 | 14945 | Newtopian |
Merging //guest/perforce_software/p4/... to //guest/Newtopian/p4/... |
||
//guest/perforce_software/p4/2014.1/support/jnltrack.h | |||||
#1 | 12188 | Matt Attaway | Move 'main' p4 into a release specific directory in prep for new releases | ||
//guest/perforce_software/p4/support/jnltrack.h | |||||
#1 | 9129 | Matt Attaway | Initial commit of the 2014.1 p4/p4api source code |