diff options
author | Nirbhay Choubey <nirbhay@mariadb.com> | 2013-11-25 12:40:08 -0500 |
---|---|---|
committer | Nirbhay Choubey <nirbhay@mariadb.com> | 2013-11-25 12:40:08 -0500 |
commit | 88f0e0ebeeca6194b73e20747cbc004970aeb26c (patch) | |
tree | 89404882ad901aa12e24dbc45c1f29c9148983d8 /sql/handler.cc | |
parent | 071edcfea05674f86926ee4c5fbf30f97c2ed368 (diff) | |
download | mariadb-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.cc | 7 |
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; |