[MDEV-9082] Debian: mysql_install_db is called on upgrade Created: 2015-11-04  Updated: 2015-11-06  Resolved: 2015-11-06

Status: Closed
Project: MariaDB Server
Component/s: Packaging, Platform Debian
Affects Version/s: 5.5, 10.0, 10.1
Fix Version/s: 10.1.9

Type: Bug Priority: Major
Reporter: Sergey Vojtovich Assignee: Sergey Vojtovich
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
Relates
relates to MDEV-8437 plugin variables conflict with bootst... Closed
Sprint: 10.1.9-2

 Description   

A comment in debian/mariadb-server-10.1.postinst says: "can safely run on upgrades with existing databases". While this is true there're a few reasons not to do that:

  • it increases installation time (it has to run rather heavy mysqld multiple times)
  • as well as it increases mysqld downtime
  • it may fail if database has some plugin specific configs (see MDEV-8437)
  • there should be no need to run this script on upgrade: they should be handled by mysql_upgrade to
  • RPM postin doesn't call it if database directory exists


 Comments   
Comment by Sergey Vojtovich [ 2015-11-05 ]

serg, please review fix for this bug.

Comment by Sergey Vojtovich [ 2015-11-05 ]

Added to 10.1.9-2 as it was originally planned.

Generated at Thu Feb 08 07:32:00 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.