[Commits] f265ab5: Fix missing trx_commit_complete_for_mysql().

Kristian Nielsen knielsen at knielsen-hq.org
Thu Sep 1 12:22:35 EEST 2016


revision-id: f265ab5fb331f4a63d8ee502f4e1f044552676c7 (mariadb-10.2.1-7-gf265ab5)
parent(s): c93531ce7edfe7b0d9d2aa9a9f9c7a53560c1f0a
committer: Kristian Nielsen
timestamp: 2016-09-01 11:11:31 +0200
message:

Fix missing trx_commit_complete_for_mysql().

Patch from Monty.

Signed-off-by: Kristian Nielsen <knielsen at knielsen-hq.org>

---
 storage/innobase/handler/ha_innodb.cc | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/storage/innobase/handler/ha_innodb.cc b/storage/innobase/handler/ha_innodb.cc
index b69468d..99ba60a 100644
--- a/storage/innobase/handler/ha_innodb.cc
+++ b/storage/innobase/handler/ha_innodb.cc
@@ -4976,16 +4976,15 @@ innobase_commit(
 		thd_wakeup_subsequent_commits(thd, 0);
 
 		/* Now do a write + flush of logs. */
-		if (!read_only) {
-			trx_commit_complete_for_mysql(trx);
-		}
 
+		trx_commit_complete_for_mysql(trx);
 		trx_deregister_from_2pc(trx);
 
 	} else {
 		/* We just mark the SQL statement ended and do not do a
 		transaction commit */
 
+		DBUG_PRINT("info", ("Just mark SQL statement"));
 		/* If we had reserved the auto-inc lock for some
 		table in this SQL statement we release it now */
 


More information about the commits mailing list