Change 30636

tom_tyler (C. Thomas Tyler)
C. Thomas Tyler committed this change into //guest/perforce_software/sdp/dev/Server/Unix/p4/common/bin under Review 30637
View Review
Download .zip
Incrementally improved log handling in edge_dump.sh, recover_edge.sh, and
recreate_offline_db.sh, to use the mechanism pioneered in ccheck.sh.

This is a precursor to a coming standardation of log handling in SDP.

As before, each script creates a log in $LOGS named <script_log>.<timestamp>.log.
With this change, symlinks in the LOGS directory are created so that
<script_log>.log (.e. sans the timestamp) points to the timestampped log
file.

So $LOGS/recover_edge.log points to $LOGS/recover_edge.<most_recent_timestamp>.log.

Each run of the script creates a new timestamped log, and updates the symlink
very early in proccessing.

This change is better for users and also simplifies automated
testing.

#review-30637
  • Files 3
  • Comments 0
3 edited 0 added 0 deleted
edge_dump.sh#12
Loading...
recover_edge.sh#17
Loading...
recreate_offline_db.sh#8
Loading...
Tip: Use n and p to cycle through the changes.