mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Implement MySQL framework to support consistent read views in
cursors. This should fix Bug#11813 when InnoDB part is in (tested with a draft patch). The idea of the patch is that if a storage engine supports consistent read views, we open one when open a cursor, set is as the active view when fetch from the cursor, and close together with cursor close.
This commit is contained in:
@ -389,6 +389,12 @@ class Cursor: public Sql_alloc, public Query_arena
|
||||
TABLE *derived_tables;
|
||||
/* List of items created during execution */
|
||||
query_id_t query_id;
|
||||
struct Engine_info
|
||||
{
|
||||
const handlerton *ht;
|
||||
void *read_view;
|
||||
};
|
||||
Engine_info ht_info[MAX_HA];
|
||||
public:
|
||||
Item_change_list change_list;
|
||||
select_send result;
|
||||
|
Reference in New Issue
Block a user