/*
* 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 |
|
#2
|
15901 |
matt_attaway |
Clean up code to fit modern Workshop naming standards |
|
|
#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 |
|
|