### Snippet from backup_functions.sh
#set -x
# shellcheck disable=SC2072
if [[ -n "${DO_PARALLEL_CHECKPOINTS:-}" && "$DO_PARALLEL_CHECKPOINTS" != "0" && "$P4D_VERSION" > "2022.2" ]]; then
DoParallelCheckpoints=1
if [[ "$DO_PARALLEL_CHECKPOINTS" =~ ^[0-9]+$ ]]; then
if [[ "$DO_PARALLEL_CHECKPOINTS" == 1 ]]; then
Threads=4
else
# Strip any leading zeros from the DO_PARALLEL_CHECKPOINTS value.
Threads=$(echo $DO_PARALLEL_CHECKPOINTS|bc)
fi
else
Threads=4
fi
else
DoParallelCheckpoints=0
fi
#set +x
| # | Change | User | Description | Committed | |
|---|---|---|---|---|---|
| #1 | 31646 | C. Thomas Tyler | Populate -r -o -S //p4-sdp/dev_rebrand2. | ||
| //p4-sdp/dev/Server/test/snippets/set_DO_PARALLEL_CHECKPOINTS_threads.snippet | |||||
| #1 | 31397 | C. Thomas Tyler | Populate -b SDP_Classic_to_Streams -s //guest/perforce_software/sdp/...@31368. | ||
| //guest/perforce_software/sdp/dev/Server/test/snippets/set_DO_PARALLEL_CHECKPOINTS_threads.snippet | |||||
| #1 | 29434 | C. Thomas Tyler |
Tweaked code deriving Threads values from user-defined DO_PARALLEL_CHECKPOINT. Added a stand-alone test script for tweaking that snippet of code. |
||