Change 7585

mark_allender (Mark Allender)
Mark Allender committed this change into //guest/mark_allender/p4dctl/src
Request Review
Download .zip
Added support for the following:

- 'Args' value specified in a p4d server block is now also applied to checkpoint and journal file calls.  I specifically added this for flags like -C1, which while technically unsupported, is also required on all calls to p4d.  I wasn't sure that there were any flags which would be used when starting a server and not when checkpointing (since all other required values are specified as environement variables)

- support for checkpoint/journal prefix.  Using the 'CkpPrefix =' in the p4d server block, you can specify a prefix used in checkpoints and journal rotations. Currently the same prefix is used for both.

- support for specifying whether or not checkpoints and journal rotations should be compressed.  Use the 'CkpCompres = true' in the p4d server block.  ACtually, just the presence of this variable will enable compressed checkpoints.  That probably ought to be changed.

- Support for a 'dump' command from p4dctl.  I wanted to be able to dump environment settings (specifically p4root, checkpoint prefixes and whether or not compression was used) in scripts that I was writing.  I hijacked the Dump() command that was used in debug output.
  • Files 6
  • Comments 0
6 edited 0 added 0 deleted
p4d.conf.sample#2
Loading...
p4dctl.cpp#2
Loading...
p4dctlerr.cpp#2
Loading...
p4dctlerr.h#2
Loading...
server.cpp#2
Loading...
server.h#2
Loading...
Tip: Use n and p to cycle through the changes.