Change 6155

michael_shields (Michael Shields)
Michael Shields committed this change into //guest/michael_shields
Request Review
Download .zip
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).
  • Files 9
  • Comments 0
8 edited 1 added 0 deleted
bin.linux26x86/p4jrep#1
Loading...
src/common/Jamfile#4
Loading...
src/p4jrep/Jamfile#5
Loading...
src/p4jrep/journal.cc#2
Loading...
src/p4jrep/journal.h#2
Loading...
src/p4jrep/jrepnotes.txt#8
Loading...
src/p4jrep/msgjrep.cc#4
Loading...
src/p4jrep/msgjrep.h#2
Loading...
src/p4jrep/p4jrep.cc#5
Loading...
Tip: Use n and p to cycle through the changes.