mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-11 13:40:07 +00:00
Go back to not spooling empty sample files.
This commit is contained in:
@@ -6015,10 +6015,9 @@ sub run_service {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Move the spool file from .tmp/ to the real spool data dir.
|
# Move the spool file from .tmp/ to the real spool data dir.
|
||||||
if ( -f $tmp_data_file && (!$use_meta || $prev_ts) ) {
|
my $file_size = -s $tmp_data_file;
|
||||||
my $file_size = -s $tmp_data_file;
|
_info("$tmp_data_file size: $file_size bytes");
|
||||||
_info("$tmp_data_file size: $file_size bytes");
|
if ( $file_size && (!$use_meta || $prev_ts) ) {
|
||||||
|
|
||||||
if ( $use_meta ) {
|
if ( $use_meta ) {
|
||||||
# Save metadata about this sample _first_, because --send-data looks
|
# Save metadata about this sample _first_, because --send-data looks
|
||||||
# for the data file first, then for a corresponding .meta file. If
|
# for the data file first, then for a corresponding .meta file. If
|
||||||
|
Reference in New Issue
Block a user