summaryrefslogtreecommitdiff
path: root/sql/handler.cc
diff options
context:
space:
mode:
authorLuis Soares <luis.soares@oracle.com>2010-12-16 19:12:31 +0000
committerLuis Soares <luis.soares@oracle.com>2010-12-16 19:12:31 +0000
commitb0e77d62f3c3a0dcfd998035ce3e3443311e05da (patch)
treedd770a5e46eacda4881d8b5c76dfb57a72df6417 /sql/handler.cc
parent3237e4908af80113f680fb0c07591516a53d0251 (diff)
parent16b2ca1f65ed8e3d73e43a3dedcc159f82af90ea (diff)
downloadmariadb-git-b0e77d62f3c3a0dcfd998035ce3e3443311e05da.tar.gz
BUG#46166
Merging to latest mysql-5.5-bugteam.
Diffstat (limited to 'sql/handler.cc')
-rw-r--r--sql/handler.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/sql/handler.cc b/sql/handler.cc
index 069422a7245..4e8af034fd8 100644
--- a/sql/handler.cc
+++ b/sql/handler.cc
@@ -1237,7 +1237,11 @@ int ha_commit_trans(THD *thd, bool all)
error=ha_commit_one_phase(thd, all) ? (cookie ? 2 : 1) : 0;
DBUG_EXECUTE_IF("crash_commit_before_unlog", DBUG_SUICIDE(););
if (cookie)
- tc_log->unlog(cookie, xid);
+ if(tc_log->unlog(cookie, xid))
+ {
+ error= 2;
+ goto end;
+ }
DBUG_EXECUTE_IF("crash_commit_after", DBUG_SUICIDE(););
RUN_HOOK(transaction, after_commit, (thd, FALSE));
end: