mirror of
https://github.com/MariaDB/server.git
synced 2026-05-15 03:17:20 +02:00
cleanup: remove table->status from some engines
from engines that we don't need to merge from a third-party repository on a regular basis
This commit is contained in:
parent
fe0ff58000
commit
74a552d5dc
9 changed files with 0 additions and 58 deletions
|
|
@ -2388,9 +2388,7 @@ int ha_federated::index_read_idx(uchar *buf, uint index, const uchar *key,
|
|||
|
||||
RESULT
|
||||
0 ok In this case *result will contain the result set
|
||||
table->status == 0
|
||||
# error In this case *result will contain 0
|
||||
table->status == STATUS_NOT_FOUND
|
||||
*/
|
||||
|
||||
int ha_federated::index_read_idx_with_result_set(uchar *buf, uint index,
|
||||
|
|
@ -2444,13 +2442,11 @@ int ha_federated::index_read_idx_with_result_set(uchar *buf, uint index,
|
|||
mysql_free_result(*result);
|
||||
results.elements--;
|
||||
*result= 0;
|
||||
table->status= STATUS_NOT_FOUND;
|
||||
DBUG_RETURN(retval);
|
||||
}
|
||||
DBUG_RETURN(0);
|
||||
|
||||
error:
|
||||
table->status= STATUS_NOT_FOUND;
|
||||
my_error(retval, MYF(0), error_buffer);
|
||||
DBUG_RETURN(retval);
|
||||
}
|
||||
|
|
@ -2523,7 +2519,6 @@ int ha_federated::read_range_first(const key_range *start_key,
|
|||
DBUG_RETURN(retval);
|
||||
|
||||
error:
|
||||
table->status= STATUS_NOT_FOUND;
|
||||
DBUG_RETURN(retval);
|
||||
}
|
||||
|
||||
|
|
@ -2684,8 +2679,6 @@ int ha_federated::read_next(uchar *buf, MYSQL_RES *result)
|
|||
MYSQL_ROW row;
|
||||
DBUG_ENTER("ha_federated::read_next");
|
||||
|
||||
table->status= STATUS_NOT_FOUND; // For easier return
|
||||
|
||||
/* Save current data cursor position. */
|
||||
current_position= result->data_cursor;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue