[MDEV-11345] Compile english error messages into mysqld executable. Created: 2016-11-24  Updated: 2023-11-27  Resolved: 2019-12-11

Status: Closed
Project: MariaDB Server
Component/s: Server
Fix Version/s: 10.2.31, 10.3.22, 10.4.12, 10.5.1

Type: Task Priority: Major
Reporter: Vladislav Vaintroub Assignee: Vladislav Vaintroub
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
Problem/Incident
causes MDEV-21586 Unable to start the server after the ... Closed
Relates
relates to MDEV-9566 Add xtrabackup tool to MariaDB 10.1 Closed

 Description   

Currently, server startup requires message directory to be set and file to be found. It would greatly increase usability, if server was independent on the message file. We could compile English messages into the executable itself instead. Apart from usability improvement, and slightly reduced startup time, this would help with other tasks. xtrabackup for example, should do plugin loading like the server does, and would reuse server functionality. However any attempt to write error message from plugin_init() when it is called from xtrabackup, would crash if message file is not loaded. I'd like to avoid introducing additional -lc_messages_dir or similar parameters for xtrabackup,(not its core functionality)



 Comments   
Comment by Vladislav Vaintroub [ 2016-12-23 ]

This is currently worked around in xtrabackup, but I would appreciate if I did not have no manually allocate memory for messages, and hardcode couple of the messages I might come across, because they are used by the sql_plugin.cc or by encryption plugins themselves,

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