/* * 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 | 18760 | rlranft |
Populate -o //guest/perforce_software/p4/... //guest/rlranft/p4/.... |
||
//guest/perforce_software/p4/2015-1/support/jnltrack.h | |||||
#1 | 15903 | Matt Attaway | Everything should be happy now between the Workshop and the depot paths | ||
//guest/perforce_software/p4/2015_1/support/jnltrack.h | |||||
#1 | 15901 | Matt Attaway | Clean up code to fit modern Workshop naming standards | ||
//guest/perforce_software/p4/2015.1/support/jnltrack.h | |||||
#1 | 12190 | Matt Attaway | Initial drop of 2015.1 p4/p4api source |