mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-12-20 02:20:04 +08:00
merged pt-query-digest-waits-for-STDIN-if-file-dosnt-exist-1404313
This commit is contained in:
@@ -13186,6 +13186,10 @@ sub main {
|
|||||||
# Open the next file.
|
# Open the next file.
|
||||||
my ($fh, $filename, $filesize) = $next_file->();
|
my ($fh, $filename, $filesize) = $next_file->();
|
||||||
if ( $fh ) {
|
if ( $fh ) {
|
||||||
|
my $fileno = fileno $fh;
|
||||||
|
if ($fileno == 0) {
|
||||||
|
print "Reading from STDIN ...\n";
|
||||||
|
}
|
||||||
PTDEBUG && _d('Reading', $filename);
|
PTDEBUG && _d('Reading', $filename);
|
||||||
PTDEBUG && _d('File size:', $filesize);
|
PTDEBUG && _d('File size:', $filesize);
|
||||||
# catch if user is trying to use an uncoverted (raw) binlog # issue 1377888
|
# catch if user is trying to use an uncoverted (raw) binlog # issue 1377888
|
||||||
|
|||||||
Reference in New Issue
Block a user