summaryrefslogtreecommitdiff
path: root/sql/sql_string.h
diff options
context:
space:
mode:
authorMagne Mahre <magne.mahre@sun.com>2010-10-06 11:01:24 +0200
committerMagne Mahre <magne.mahre@sun.com>2010-10-06 11:01:24 +0200
commit623ed1946215e25682847ac3b0ea066cab35ea59 (patch)
tree8e81ffa629578564a5e5fea2294b439ce27058ee /sql/sql_string.h
parentfd7dd37e2eb94cb87320b0f1eb355e5ba660fd6c (diff)
downloadmariadb-git-623ed1946215e25682847ac3b0ea066cab35ea59.tar.gz
Bug#56452 Assertion failed: thd->transaction.stmt.is_empty() ||
thd->in_sub_stmt In a precursor patch for Bug#52044 (revid:bzr/kostja@stripped), a number of reorganizations of code was made. In addition some assertions were added to ensure the correct transactional state. The reorganization had a small glitch so statements that was active in the query cache was not followed by a statement commit/rollback (this code was removed). A section in the trans_commit_stmt/trans_rollback_stmt code is to clear the thd->transaction.stmt list of affected storage engines. When a new statement is initiated, an assert introduced by the 523044 patch checks if this list is cleared. When the query cache is accessed, this list may be populated, and since it's not committed it will not be cleared. This fix adds explicit statement commit or rollback for statements that is contained in the query cache.
Diffstat (limited to 'sql/sql_string.h')
0 files changed, 0 insertions, 0 deletions