mirror of
https://github.com/MariaDB/server.git
synced 2025-07-27 18:02:13 +03:00
Merge 10.0 into 10.1
This commit is contained in:
@ -3180,9 +3180,17 @@ private:
|
||||
*/
|
||||
virtual int rnd_pos_by_record(uchar *record)
|
||||
{
|
||||
int error;
|
||||
DBUG_ASSERT(table_flags() & HA_PRIMARY_KEY_REQUIRED_FOR_POSITION);
|
||||
|
||||
error = ha_rnd_init(false);
|
||||
if (error != 0)
|
||||
return error;
|
||||
|
||||
position(record);
|
||||
return rnd_pos(record, ref);
|
||||
error = ha_rnd_pos(record, ref);
|
||||
ha_rnd_end();
|
||||
return error;
|
||||
}
|
||||
virtual int read_first_row(uchar *buf, uint primary_key);
|
||||
public:
|
||||
|
Reference in New Issue
Block a user