mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-12-24 02:01:42 +08:00
rm -rf the oprofile dirs.
This commit is contained in:
@@ -1007,7 +1007,7 @@ purge_samples() {
|
||||
# "pt_collect_" here needs to match $CMD_OPCONTROL --save=pt_collect_$p
|
||||
# in collect(). TODO: fix this
|
||||
find "$oprofile_dir" -type d -name 'pt_collect_*' \
|
||||
-depth -mtime +$retention_time -exec rm -f '{}' \;
|
||||
-depth -mtime +$retention_time -exec rm -rf '{}' \;
|
||||
fi
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user