diff options
author | kostja@bodhi.(none) <> | 2007-12-20 21:16:55 +0300 |
---|---|---|
committer | kostja@bodhi.(none) <> | 2007-12-20 21:16:55 +0300 |
commit | dfe685e6fc5b1ff0a74a1868d7299122b6af017b (patch) | |
tree | f154da404267333803f8dc058a8c8d0bc0fea5d6 /sql/unireg.cc | |
parent | ab6ef39cd1397fa90bef6ac4b60b1b986cbb96c1 (diff) | |
download | mariadb-git-dfe685e6fc5b1ff0a74a1868d7299122b6af017b.tar.gz |
A pre-requisite for the fix for Bug#12713 "Error in a stored function
called from a SELECT doesn't cause ROLLBACK of state"
Make private all class handler methods (PSEA API) that may modify
data. Introduce and deploy public ha_* wrappers for these methods in
all sql/.
This necessary to keep track of all data modifications in sql/,
which is in turn necessary to be able to optimize two-phase
commit of those transactions that do not modify data.
Diffstat (limited to 'sql/unireg.cc')
-rw-r--r-- | sql/unireg.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sql/unireg.cc b/sql/unireg.cc index dbdefd8d5b1..cbeedc6fb8f 100644 --- a/sql/unireg.cc +++ b/sql/unireg.cc @@ -393,7 +393,7 @@ int rea_create_table(THD *thd, const char *path, DBUG_ASSERT(*fn_rext(frm_name)); if (thd->variables.keep_files_on_create) create_info->options|= HA_CREATE_KEEP_FILES; - if (file->create_handler_files(path, NULL, CHF_CREATE_FLAG, create_info)) + if (file->ha_create_handler_files(path, NULL, CHF_CREATE_FLAG, create_info)) goto err_handler; if (!create_info->frm_only && ha_create_table(thd, path, db, table_name, create_info,0)) @@ -401,7 +401,7 @@ int rea_create_table(THD *thd, const char *path, DBUG_RETURN(0); err_handler: - VOID(file->create_handler_files(path, NULL, CHF_DELETE_FLAG, create_info)); + VOID(file->ha_create_handler_files(path, NULL, CHF_DELETE_FLAG, create_info)); my_delete(frm_name, MYF(0)); DBUG_RETURN(1); } /* rea_create_table */ |