[MDEV-31619] dict_stats_persistent_storage_check() may show garbage during --bootstrap Created: 2023-07-04  Updated: 2023-07-04  Resolved: 2023-07-04

Status: Closed
Project: MariaDB Server
Component/s: Storage Engine - InnoDB
Affects Version/s: 10.6, 10.7, 10.8, 10.9, 10.10, 10.11, 11.0, 11.1, 11.2
Fix Version/s: 10.6.15, 10.9.8, 10.10.6, 10.11.5, 11.0.3, 11.1.2, 11.2.1

Type: Bug Priority: Major
Reporter: Marko Mäkelä Assignee: Marko Mäkelä
Resolution: Fixed Votes: 0
Labels: MSAN

Issue Links:
Relates
relates to MDEV-30065 "mariadb-install-db --enforce-storage... Stalled

 Description   

This came up while I was testing MDEV-14795 with some dummy initial database contents:

mkdir /dev/shm/data
echo "create database test;
use test;
create table t(a int,b char(255) not null default'')engine=innodb;
insert into t(a) select * from seq_1_to_1000000;
drop table t;"|
./mariadbd --datadir /dev/shm/data --bootstrap

The server error log output would include two garbled messages, both issued by dict_stats_persistent_storage_check(). The problem is that the local variable errmsg would remain uninitialized if opt_bootstrap holds. In this case, we should refrain from outputting the garbage message.

The code had been refactored between 10.5 and 10.6, so it is possible that this does not affect older versions than 10.6. The check for bootstrap had been added in MDEV-30065.


Generated at Thu Feb 08 10:25:14 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.