mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03: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:
@@ -290,7 +290,6 @@ int ha_heap::index_read_map(uchar *buf, const uchar *key,
|
||||
{
|
||||
DBUG_ASSERT(inited==INDEX);
|
||||
int error = heap_rkey(file,buf,active_index, key, keypart_map, find_flag);
|
||||
table->status = error ? STATUS_NOT_FOUND : 0;
|
||||
return error;
|
||||
}
|
||||
|
||||
@@ -300,7 +299,6 @@ int ha_heap::index_read_last_map(uchar *buf, const uchar *key,
|
||||
DBUG_ASSERT(inited==INDEX);
|
||||
int error= heap_rkey(file, buf, active_index, key, keypart_map,
|
||||
HA_READ_PREFIX_LAST);
|
||||
table->status= error ? STATUS_NOT_FOUND : 0;
|
||||
return error;
|
||||
}
|
||||
|
||||
@@ -309,7 +307,6 @@ int ha_heap::index_read_idx_map(uchar *buf, uint index, const uchar *key,
|
||||
enum ha_rkey_function find_flag)
|
||||
{
|
||||
int error = heap_rkey(file, buf, index, key, keypart_map, find_flag);
|
||||
table->status = error ? STATUS_NOT_FOUND : 0;
|
||||
return error;
|
||||
}
|
||||
|
||||
@@ -317,7 +314,6 @@ int ha_heap::index_next(uchar * buf)
|
||||
{
|
||||
DBUG_ASSERT(inited==INDEX);
|
||||
int error=heap_rnext(file,buf);
|
||||
table->status=error ? STATUS_NOT_FOUND: 0;
|
||||
return error;
|
||||
}
|
||||
|
||||
@@ -325,7 +321,6 @@ int ha_heap::index_prev(uchar * buf)
|
||||
{
|
||||
DBUG_ASSERT(inited==INDEX);
|
||||
int error=heap_rprev(file,buf);
|
||||
table->status=error ? STATUS_NOT_FOUND: 0;
|
||||
return error;
|
||||
}
|
||||
|
||||
@@ -333,7 +328,6 @@ int ha_heap::index_first(uchar * buf)
|
||||
{
|
||||
DBUG_ASSERT(inited==INDEX);
|
||||
int error=heap_rfirst(file, buf, active_index);
|
||||
table->status=error ? STATUS_NOT_FOUND: 0;
|
||||
return error;
|
||||
}
|
||||
|
||||
@@ -341,7 +335,6 @@ int ha_heap::index_last(uchar * buf)
|
||||
{
|
||||
DBUG_ASSERT(inited==INDEX);
|
||||
int error=heap_rlast(file, buf, active_index);
|
||||
table->status=error ? STATUS_NOT_FOUND: 0;
|
||||
return error;
|
||||
}
|
||||
|
||||
@@ -353,7 +346,6 @@ int ha_heap::rnd_init(bool scan)
|
||||
int ha_heap::rnd_next(uchar *buf)
|
||||
{
|
||||
int error=heap_scan(file, buf);
|
||||
table->status=error ? STATUS_NOT_FOUND: 0;
|
||||
return error;
|
||||
}
|
||||
|
||||
@@ -363,7 +355,6 @@ int ha_heap::rnd_pos(uchar * buf, uchar *pos)
|
||||
HEAP_PTR heap_position;
|
||||
memcpy(&heap_position, pos, sizeof(HEAP_PTR));
|
||||
error=heap_rrnd(file, buf, heap_position);
|
||||
table->status=error ? STATUS_NOT_FOUND: 0;
|
||||
return error;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user