UNIV_SYNC_DEBUG build broken

Bug #1099415 reported by Laurynas Biveinis
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Percona Server moved to https://jira.percona.com/projects/PS
Invalid
Undecided
Unassigned
5.1
Invalid
Undecided
Unassigned
5.5
Triaged
Low
Unassigned
5.6
Invalid
Undecided
Unassigned

Bug Description

5.5:

[ 55%] Building C object storage/innobase/CMakeFiles/innobase.dir/ha/ha0ha.c.o
/home/laurynas/percona/src/UNIV_SYNC_DEBUG-5.5/Percona-Server/storage/innobase/ha/ha0ha.c: In function ‘ha_insert_for_fold_func’:
/home/laurynas/percona/src/UNIV_SYNC_DEBUG-5.5/Percona-Server/storage/innobase/ha/ha0ha.c:118:2: error: passing argument 1 of ‘rw_lock_own’ discards ‘volatile’ qualifier from pointer target type [-Werror]
In file included from /home/laurynas/percona/src/UNIV_SYNC_DEBUG-5.5/Percona-Server/storage/innobase/include/btr0types.h:33:0,
                 from /home/laurynas/percona/src/UNIV_SYNC_DEBUG-5.5/Percona-Server/storage/innobase/include/ha0ha.ic:28,
                 from /home/laurynas/percona/src/UNIV_SYNC_DEBUG-5.5/Percona-Server/storage/innobase/include/ha0ha.h:233,
                 from /home/laurynas/percona/src/UNIV_SYNC_DEBUG-5.5/Percona-Server/storage/innobase/ha/ha0ha.c:26:
/home/laurynas/percona/src/UNIV_SYNC_DEBUG-5.5/Percona-Server/storage/innobase/include/sync0rw.h:513:1: note: expected ‘struct rw_lock_t *’ but argument is of type ‘volatile struct rw_lock_t *’
cc1: all warnings being treated as errors
make[2]: *** [storage/innobase/CMakeFiles/innobase.dir/ha/ha0ha.c.o] Error 1
make[1]: *** [storage/innobase/CMakeFiles/innobase.dir/all] Error 2
make: *** [all] Error 2

Tags: xtradb
Revision history for this message
Laurynas Biveinis (laurynas-biveinis) wrote :

A superficial fix is easy but investigating the adaptive hash index partition RW lock split would take a bit more time.

Revision history for this message
Raghavendra D Prabhu (raghavendra-prabhu) wrote :

Other than its declaration, it is not used as such in other
places like btr_search_drop_page_hash_index.

Revision history for this message
Raghavendra D Prabhu (raghavendra-prabhu) wrote :

This is not present (the volatile construct) upstream but seems to have been merged in rev 235.

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

Percona now uses JIRA for bug reports so this bug report is migrated to: https://jira.percona.com/browse/PS-2876

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

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.