|
MySQL 5.6.14 Source Code Document
|
Functions for easy reading of records, possible through a cache. More...
#include "records.h"#include "sql_priv.h"#include "sql_list.h"#include "filesort.h"#include "opt_range.h"#include "sql_class.h"#include "sql_select.h"
Go to the source code of this file.
Functions | |
| int | rr_sequential (READ_RECORD *info) |
| bool | init_read_record_idx (READ_RECORD *info, THD *thd, TABLE *table, bool print_error, uint idx, bool reverse) |
| bool | init_read_record (READ_RECORD *info, THD *thd, TABLE *table, SQL_SELECT *select, int use_record_cache, bool print_error, bool disable_rr_cache) |
| void | end_read_record (READ_RECORD *info) |
| void | rr_unlock_row (st_join_table *tab) |
Functions for easy reading of records, possible through a cache.
Definition in file records.cc.
| bool init_read_record_idx | ( | READ_RECORD * | info, |
| THD * | thd, | ||
| TABLE * | table, | ||
| bool | print_error, | ||
| uint | idx, | ||
| bool | reverse | ||
| ) |
Initialize READ_RECORD structure to perform full index scan in desired direction using read_record.read_record() interface
This function has been added at late stage and is used only by UPDATE/DELETE. Other statements perform index scans using join_read_first/next functions.
| info | READ_RECORD structure to initialize. |
| thd | Thread handle |
| table | Table to be accessed |
| print_error | If true, call table->file->print_error() if an error occurs (except for end-of-records error) |
| idx | index to scan |
| reverse | Scan in the reverse direction |
| true | error |
| false | success |
Definition at line 67 of file records.cc.

| void rr_unlock_row | ( | st_join_table * | tab | ) |
The default implementation of unlock-row method of READ_RECORD, used in all access methods.
Definition at line 712 of file records.cc.
