summaryrefslogtreecommitdiff
path: root/sql/ha_partition.cc
diff options
context:
space:
mode:
authorunknown <knielsen@knielsen-hq.org>2010-12-10 09:51:34 +0100
committerunknown <knielsen@knielsen-hq.org>2010-12-10 09:51:34 +0100
commitb78f6240448c3e53ae60549483eb78225a5edc34 (patch)
tree0adde930a4c191394b8852ebb2c3a7692dd1d1f8 /sql/ha_partition.cc
parent077d96c2a7e12e5848a657bc27972b74832f2ef9 (diff)
downloadmariadb-git-b78f6240448c3e53ae60549483eb78225a5edc34.tar.gz
Fix wrong merge of patch for Bug#46639.
Diffstat (limited to 'sql/ha_partition.cc')
-rw-r--r--sql/ha_partition.cc39
1 files changed, 0 insertions, 39 deletions
diff --git a/sql/ha_partition.cc b/sql/ha_partition.cc
index e7de3fb5289..e2ad4b4462c 100644
--- a/sql/ha_partition.cc
+++ b/sql/ha_partition.cc
@@ -4640,19 +4640,6 @@ int ha_partition::handle_unordered_scan_next_partition(uchar * buf)
break;
case partition_index_first:
DBUG_PRINT("info", ("index_first on partition %d", i));
- /*
- MyISAM engine can fail if we call index_first() when indexes disabled
- that happens if the table is empty.
- Here we use file->stats.records instead of file->records() because
- file->records() is supposed to return an EXACT count, and it can be
- possibly slow. We don't need an exact number, an approximate one- from
- the last ::info() call - is sufficient.
- */
- if (file->stats.records == 0)
- {
- error= HA_ERR_END_OF_FILE;
- break;
- }
error= file->ha_index_first(buf);
break;
case partition_index_first_unordered:
@@ -4740,36 +4727,10 @@ int ha_partition::handle_ordered_index_scan(uchar *buf, bool reverse_order)
m_start_key.flag);
break;
case partition_index_first:
- /*
- MyISAM engine can fail if we call index_first() when indexes disabled
- that happens if the table is empty.
- Here we use file->stats.records instead of file->records() because
- file->records() is supposed to return an EXACT count, and it can be
- possibly slow. We don't need an exact number, an approximate one- from
- the last ::info() call - is sufficient.
- */
- if (file->stats.records == 0)
- {
- error= HA_ERR_END_OF_FILE;
- break;
- }
error= file->ha_index_first(rec_buf_ptr);
reverse_order= FALSE;
break;
case partition_index_last:
- /*
- MyISAM engine can fail if we call index_last() when indexes disabled
- that happens if the table is empty.
- Here we use file->stats.records instead of file->records() because
- file->records() is supposed to return an EXACT count, and it can be
- possibly slow. We don't need an exact number, an approximate one- from
- the last ::info() call - is sufficient.
- */
- if (file->stats.records == 0)
- {
- error= HA_ERR_END_OF_FILE;
- break;
- }
error= file->ha_index_last(rec_buf_ptr);
reverse_order= TRUE;
break;