diff options
author | Konstantin Osipov <kostja@sun.com> | 2010-05-06 02:02:08 +0400 |
---|---|---|
committer | Konstantin Osipov <kostja@sun.com> | 2010-05-06 02:02:08 +0400 |
commit | 9e62cf67b3cf0b92e4f57d49149000d640963bed (patch) | |
tree | e68e344b9f436b051706e830672ac8fbaa869662 /sql/sql_prepare.cc | |
parent | b47e4fbf834b260924d0eb15067f318f00dfbecd (diff) | |
download | mariadb-git-9e62cf67b3cf0b92e4f57d49149000d640963bed.tar.gz |
Clean-up, give better names, add comments to
thd->in_multi_stmt_transaction() and thd->active_transaction().
include/mysql_com.h:
Comment SERVER_STATUS_IN_TRANS flag.
sql/ha_ndbcluster.cc:
Rename: thd->in_multi_stmt_transaction() ->
thd->in_multi_stmt_transaction_mode().
sql/handler.cc:
Add comments.
sql/log.cc:
Rename: thd->in_multi_stmt_transaction() ->
thd->in_multi_stmt_transaction_mode().
sql/log_event.cc:
Rename: thd->in_multi_stmt_transaction() ->
thd->in_multi_stmt_transaction_mode().
sql/sql_base.cc:
Rename: thd->in_multi_stmt_transaction() ->
thd->in_multi_stmt_transaction_mode().
sql/sql_cache.cc:
Rename: thd->active_transaction() ->
thd->in_active_multi_stmt_transaction().
sql/sql_class.cc:
Rename: thd->in_multi_stmt_transaction() ->
thd->in_multi_stmt_transaction_mode().
sql/sql_class.h:
Rename and comment two transaction processing- related methods.
sql/sql_parse.cc:
Rename: thd->in_multi_stmt_transaction() ->
thd->in_multi_stmt_transaction_mode().
Rename: thd->active_transaction() ->
thd->in_active_multi_stmt_transaction().
sql/sql_prepare.cc:
Rename: thd->in_multi_stmt_transaction() ->
thd->in_multi_stmt_transaction_mode().
sql/sql_rename.cc:
Rename: thd->active_transaction() ->
thd->in_active_multi_stmt_transaction().
sql/sql_table.cc:
Rename: thd->active_transaction() ->
thd->in_active_multi_stmt_transaction().
sql/sys_vars.cc:
Rename: thd->active_transaction() ->
thd->in_active_multi_stmt_transaction().
sql/transaction.cc:
Rename: thd->in_multi_stmt_transaction() ->
thd->in_multi_stmt_transaction_mode().
Rename: thd->active_transaction() ->
thd->in_active_multi_stmt_transaction().
Diffstat (limited to 'sql/sql_prepare.cc')
-rw-r--r-- | sql/sql_prepare.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/sql_prepare.cc b/sql/sql_prepare.cc index c8f53235793..c2d3c595d95 100644 --- a/sql/sql_prepare.cc +++ b/sql/sql_prepare.cc @@ -3246,7 +3246,7 @@ bool Prepared_statement::prepare(const char *packet, uint packet_len) locks have already been released and our savepoint points to ticket which has been released as well. */ - if (thd->in_multi_stmt_transaction()) + if (thd->in_multi_stmt_transaction_mode()) thd->mdl_context.rollback_to_savepoint(mdl_savepoint); thd->restore_backup_statement(this, &stmt_backup); thd->stmt_arena= old_stmt_arena; |