summaryrefslogtreecommitdiff
path: root/storage/federated
diff options
context:
space:
mode:
authorSergei Golubchik <sergii@pisem.net>2011-07-14 18:24:01 +0200
committerSergei Golubchik <sergii@pisem.net>2011-07-14 18:24:01 +0200
commit4b70fc0c56065ba0d0f482add41676d6749ee96e (patch)
tree6326b830fdc65d7828e5b0d23e3e54aca85b25cd /storage/federated
parenta8446356373e84530a4c83759370178ec2bce571 (diff)
downloadmariadb-git-4b70fc0c56065ba0d0f482add41676d6749ee96e.tar.gz
less boilerplate code - move common operations to wrappers
Diffstat (limited to 'storage/federated')
-rw-r--r--storage/federated/ha_federated.cc16
1 files changed, 0 insertions, 16 deletions
diff --git a/storage/federated/ha_federated.cc b/storage/federated/ha_federated.cc
index ab338d9281f..f175b4c2ced 100644
--- a/storage/federated/ha_federated.cc
+++ b/storage/federated/ha_federated.cc
@@ -383,7 +383,6 @@
#endif
#include "ha_federated.h"
-#include "probes_mysql.h"
#include "m_string.h"
#include "key.h" // key_copy
@@ -2355,12 +2354,10 @@ int ha_federated::index_read(uchar *buf, const uchar *key,
int rc;
DBUG_ENTER("ha_federated::index_read");
- MYSQL_INDEX_READ_ROW_START(table_share->db.str, table_share->table_name.str);
free_result();
rc= index_read_idx_with_result_set(buf, active_index, key,
key_len, find_flag,
&stored_result);
- MYSQL_INDEX_READ_ROW_DONE(rc);
DBUG_RETURN(rc);
}
@@ -2512,7 +2509,6 @@ int ha_federated::read_range_first(const key_range *start_key,
sizeof(sql_query_buffer),
&my_charset_bin);
DBUG_ENTER("ha_federated::read_range_first");
- MYSQL_INDEX_READ_ROW_START(table_share->db.str, table_share->table_name.str);
DBUG_ASSERT(!(start_key == NULL && end_key == NULL));
@@ -2535,12 +2531,10 @@ int ha_federated::read_range_first(const key_range *start_key,
}
retval= read_next(table->record[0], stored_result);
- MYSQL_INDEX_READ_ROW_DONE(retval);
DBUG_RETURN(retval);
error:
table->status= STATUS_NOT_FOUND;
- MYSQL_INDEX_READ_ROW_DONE(retval);
DBUG_RETURN(retval);
}
@@ -2549,9 +2543,7 @@ int ha_federated::read_range_next()
{
int retval;
DBUG_ENTER("ha_federated::read_range_next");
- MYSQL_INDEX_READ_ROW_START(table_share->db.str, table_share->table_name.str);
retval= rnd_next_int(table->record[0]);
- MYSQL_INDEX_READ_ROW_DONE(retval);
DBUG_RETURN(retval);
}
@@ -2561,10 +2553,8 @@ int ha_federated::index_next(uchar *buf)
{
int retval;
DBUG_ENTER("ha_federated::index_next");
- MYSQL_INDEX_READ_ROW_START(table_share->db.str, table_share->table_name.str);
ha_statistic_increment(&SSV::ha_read_next_count);
retval= read_next(buf, stored_result);
- MYSQL_INDEX_READ_ROW_DONE(retval);
DBUG_RETURN(retval);
}
@@ -2660,10 +2650,7 @@ int ha_federated::rnd_next(uchar *buf)
{
int rc;
DBUG_ENTER("ha_federated::rnd_next");
- MYSQL_READ_ROW_START(table_share->db.str, table_share->table_name.str,
- TRUE);
rc= rnd_next_int(buf);
- MYSQL_READ_ROW_DONE(rc);
DBUG_RETURN(rc);
}
@@ -2777,8 +2764,6 @@ int ha_federated::rnd_pos(uchar *buf, uchar *pos)
int ret_val;
DBUG_ENTER("ha_federated::rnd_pos");
- MYSQL_READ_ROW_START(table_share->db.str, table_share->table_name.str,
- FALSE);
ha_statistic_increment(&SSV::ha_read_rnd_count);
/* Get stored result set. */
@@ -2789,7 +2774,6 @@ int ha_federated::rnd_pos(uchar *buf, uchar *pos)
sizeof(MYSQL_ROW_OFFSET));
/* Read a row. */
ret_val= read_next(buf, result);
- MYSQL_READ_ROW_DONE(ret_val);
DBUG_RETURN(ret_val);
}