mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
In the handlerton, cursor creation function don't have an argument
and so the engine calls current_thd to derive transaction information; instead we now pass THD to those functions, it looks more logical (it makes the implicit current_thd parameter more visible). Approved by Brian and Monty.
This commit is contained in:
@ -630,9 +630,9 @@ struct handlerton
|
||||
int (*recover)(XID *xid_list, uint len);
|
||||
int (*commit_by_xid)(XID *xid);
|
||||
int (*rollback_by_xid)(XID *xid);
|
||||
void *(*create_cursor_read_view)();
|
||||
void (*set_cursor_read_view)(void *);
|
||||
void (*close_cursor_read_view)(void *);
|
||||
void *(*create_cursor_read_view)(THD *thd);
|
||||
void (*set_cursor_read_view)(THD *thd, void *read_view);
|
||||
void (*close_cursor_read_view)(THD *thd, void *read_view);
|
||||
handler *(*create)(TABLE_SHARE *table, MEM_ROOT *mem_root);
|
||||
void (*drop_database)(char* path);
|
||||
int (*panic)(enum ha_panic_function flag);
|
||||
|
Reference in New Issue
Block a user