msgjrep.h #4

  • //
  • guest/
  • michael_shields/
  • src/
  • p4jrep/
  • msgjrep.h
  • View
  • Commits
  • Open Download .zip Download (370 B)
/*
 * msgjrep.h - definition of messages for p4jrep.
 */

class MsgJrep {

    public:

	static ErrorId ShortUsage;
	static ErrorId VVNotSeen;
	static ErrorId VVUnknownVersion;
	static ErrorId VVFirstNotJournal;
	static ErrorId VVInvalidFormat;
	static ErrorId VVSscanfFail;
	static ErrorId PosBadChars;
	static ErrorId PosSscanfFail;
	static ErrorId NotRecreated;

} ;
# Change User Description Committed
#4 7886 Michael Shields Correctly handle 2010.2 journals, which have an @nx@ record as the
first record in the journal after the journal has been rotated.
#3 6439 Michael Shields Updating for the 2008.1 p4d.
The format of the @vv@ record changed
in the 2008.1 p4d. The @vv@ record is the one and only journal
record the format of which is important to p4jrep.

This p4jrep can also be used with prior releases of p4d.

Version string:
  p4jrep Version 0.91 (beta)
#2 6155 Michael Shields Updated for the 2007.3 release while maintaining compatibility
with prior releases.

2007.3 and later servers might rotate the journal by renaming it
rather than copying and truncating it. A renamed journal is now
detected by comparing the device and inode returned from statting
by the journal's file name and statting by the journal's file
descriptor. This algorithm (suggested by J.T. Goldstone; thanks J.T.!)
is faster than reopening the journal and seeking if the journal was
not rotated (~2.0 seconds vs. ~2.7 seconds for 1,000,000 iterations
on my laptop).
#1 4839 Michael Shields Pushing p4jrep source into the public depot.