Details
-
Type:
Bug
-
Status: Closed
-
Priority:
Major
-
Resolution: Duplicate
-
Affects Version/s: 10.0.7
-
Fix Version/s: 10.0.8
-
Component/s: None
-
Labels:
-
Environment:jan@jan-GE70-0NC-0ND ~/mysql/maria-10.0-galera $ gcc --version
gcc (Ubuntu/Linaro 4.8.1-10ubuntu9) 4.8.1
Description
Compiler failure seen on build (not using -DCMAKE_BUILD_TYPE=Debug).
/home/jan/mysql/maria-10.0-galera/storage/tokudb/ft-index/ft/ft-ops.cc: In function ‘ft_leaf_run_gc’:
/home/jan/mysql/maria-10.0-galera/storage/tokudb/ft-index/ft/ft-ops.cc:2261:26: error: ‘leaf_entry’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
if (leaf_entry->type != LE_MVCC) {
^
lto1: all warnings being treated as errors
lto-wrapper: /usr/bin/c++ returned 1 exit status
/usr/bin/ld: lto-wrapper failed
collect2: error: ld returned 1 exit status
Fix:
jan@jan-GE70-0NC-0ND ~/mysql/maria-10.0-galera $ bzr diff
=== modified file 'storage/tokudb/ft-index/ft/ft-ops.cc'
--- storage/tokudb/ft-index/ft/ft-ops.cc 2013-10-04 20:49:53 +0000
+++ storage/tokudb/ft-index/ft/ft-ops.cc 2014-02-04 18:04:06 +0000
@@ -2330,7 +2330,7 @@
while (index < (num_leafentries_before = bn->data_buffer.omt_size())) {
void* keyp = NULL;
uint32_t keylen = 0;
- LEAFENTRY leaf_entry;
+ LEAFENTRY leaf_entry = 0;
bn->data_buffer.fetch_klpair(index, &leaf_entry, &keylen, &keyp);
assert_zero(r);
ft_basement_node_gc_once(
Gliffy Diagrams
Attachments
Issue Links
- is duplicated by
-
MDEV-5347 TokuDB compilation errors @ 5.5.34
-
- Closed
-
Activity
- All
- Comments
- Work Log
- History
- Activity
- Transitions