summaryrefslogtreecommitdiff
path: root/sql/handler.cc
diff options
context:
space:
mode:
authorNirbhay Choubey <nirbhay@mariadb.com>2013-11-25 12:40:08 -0500
committerNirbhay Choubey <nirbhay@mariadb.com>2013-11-25 12:40:08 -0500
commit88f0e0ebeeca6194b73e20747cbc004970aeb26c (patch)
tree89404882ad901aa12e24dbc45c1f29c9148983d8 /sql/handler.cc
parent071edcfea05674f86926ee4c5fbf30f97c2ed368 (diff)
downloadmariadb-git-88f0e0ebeeca6194b73e20747cbc004970aeb26c.tar.gz
MDEV-4108 Compilation warnings with RelWithDebInfo
only present in the Galera tree Fix for some compiler warnings.
Diffstat (limited to 'sql/handler.cc')
-rw-r--r--sql/handler.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/sql/handler.cc b/sql/handler.cc
index 028b4488573..9cadfb2cf3f 100644
--- a/sql/handler.cc
+++ b/sql/handler.cc
@@ -1297,7 +1297,9 @@ int ha_commit_trans(THD *thd, bool all)
*/
err= ht->prepare(ht, thd, all);
status_var_increment(thd->status_var.ha_prepare_count);
+
if (err)
+ {
#ifdef WITH_WSREP
if (WSREP(thd) && ht->db_type== DB_TYPE_WSREP)
{
@@ -1309,9 +1311,14 @@ int ha_commit_trans(THD *thd, bool all)
}
}
else
+ {
/* not wsrep hton, bail to native mysql behavior */
#endif
my_error(ER_ERROR_DURING_COMMIT, MYF(0), err);
+#ifdef WITH_WSREP
+ } /* End of else */
+#endif
+ }
if (err)
goto err;