Revert "Merge pull request #380 from percona/PT-1114"

This reverts commit bcbc175d0c, reversing
changes made to cf5c661d46.
This commit is contained in:
Carlos Salguero
2019-01-08 10:33:24 -03:00
parent 12edc268f6
commit f7722200e8
5 changed files with 16 additions and 163 deletions

View File

@@ -75,14 +75,6 @@ sub index_length {
n_index_cols => $n_index_cols,
);
if (!$vals) {
# Maybe the table is empty ...
my @row = $cxn->dbh()->selectrow_array('SELECT COUNT(*) FROM '.$args{tbl}->{name});
if ($row[0] == 0) {
PTDEBUG && _d('Table '.$args{tbl}->{name}.' is empty');
return undef, undef;
}
}
# Make an EXPLAIN query to scan the range and execute it.
my $sql = $self->_make_range_query(
%args,