- validate_trace_count $EVENT_NAME $local_path/${chunk_pattern}-2 20
- if [ $? -eq 0 ]; then
- # Only delete if successful
- rm -rf $local_path/${chunk_pattern}-2
- fi
-
- # Chunk 3: 0 event
- # Do not check in per-pid, because the folder is really empty, no metadata
- # or stream files.
- if test $per_pid = 1; then
- rm -rf $local_path/${chunk_pattern}-3
- else
- validate_trace_empty $local_path/${chunk_pattern}-3
- if [ $? -eq 0 ]; then
- # Only delete if successful
- rm -rf $local_path/${chunk_pattern}-3
- fi
- fi