Debug builds fail

Bug #1384413 reported by Alexey Kopytov
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MySQL patches by Codership
Percona XtraDB Cluster moved to
Status tracked in 5.6
Fix Released
Alexey Kopytov

Bug Description

WITH_DEBUG=1 builds fail with the following compiler errors:

[ 61%] Building CXX object storage/innobase/CMakeFiles/innobase.dir/handler/
cc1plus: warnings being treated as errors
/home/user/src/launchpad/pxc/5.6/storage/innobase/handler/ In member function ‘int ha_innobase::wsrep_append_keys(THD*, bool, const uchar*, const uchar*)’:
/home/user/src/launchpad/pxc/5.6/storage/innobase/handler/ error: unused variable ‘key_info’
make[2]: *** [storage/innobase/CMakeFiles/innobase.dir/handler/] Error 1
[ 61%] Building CXX object storage/innobase/CMakeFiles/innobase.dir/lock/
cc1plus: warnings being treated as errors
/home/user/src/launchpad/pxc/5.6/storage/innobase/lock/ error: ‘trx_t* lock_rec_other_trx_holds_expl(ulint, trx_id_t, const rec_t*, const buf_block_t*)’ defined but not used
make[2]: *** [storage/innobase/CMakeFiles/innobase.dir/lock/] Error 1
make[2]: Target `storage/innobase/CMakeFiles/innobase.dir/build' not remade because of e

Verified with 5.6 on CentOS 6.5.

The fix is:

=== modified file 'storage/innobase/handler/'
--- storage/innobase/handler/ 2014-10-11 06:46:30 +0000
+++ storage/innobase/handler/ 2014-10-22 19:28:02 +0000
@@ -10066,7 +10066,6 @@
   uint len;
   char keyval[WSREP_MAX_SUPPORTED_KEY_LENGTH+1] = {'\0'};
   char *key = &keyval[0];
- KEY *key_info = table->key_info;
   ibool is_null;

   len = wsrep_store_key_val_for_row(

=== modified file 'storage/innobase/lock/'
--- storage/innobase/lock/ 2014-10-11 06:46:30 +0000
+++ storage/innobase/lock/ 2014-10-22 19:25:56 +0000
@@ -1798,7 +1798,7 @@

-#ifdef UNIV_DEBUG
+#if defined(UNIV_DEBUG) && !defined(WITH_WSREP)
 Checks if some transaction, other than given trx_id, has an explicit
 lock on the given rec, in the given precise_mode.

Related branches

Revision history for this message
Shahriyar Rzayev (rzayev-sehriyar) wrote :

Percona now uses JIRA for bug reports so this bug report is migrated to:

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers