[MDEV-8585] BOOLEAN variables with a required command-line argument (e.g. aria-encrypt-tables) Created: 2015-08-08  Updated: 2016-08-29  Resolved: 2016-08-26

Status: Closed
Project: MariaDB Server
Component/s: Encryption
Affects Version/s: 10.1
Fix Version/s: 10.1.9

Type: Bug Priority: Minor
Reporter: Elena Stepanova Assignee: Sergei Golubchik
Resolution: Fixed Votes: 0
Labels: None


 Description   

There are some boolean variables/options which are not recognized on a command line or in a cnf file without an argument It does not seem particularly reasonable, and certainly looks inconsistent, because other similar variables work just fine without an argument..

I could suppose that it's a legacy thing, but there are new ones as well, e.g. aria-encrypt-tables. So, innodb-encrypt-tables works without an argument, encrypt-tmp-disk-tables too, but aria-encrypt-tables does not. It's just weird.



 Comments   
Comment by Sergei Golubchik [ 2016-07-12 ]

Are you sure about that? innodb_encryption.opt has aria-encrypt-tables without an argument, so it must be working.

Comment by Elena Stepanova [ 2016-08-26 ]

It works now (as of 10.1.16), it didn't work for 10.1.5:

Start with --aria-encrypt-tables

2016-08-26 19:27:17 140150122289024 [Note] InnoDB:  Percona XtraDB (http://www.percona.com) 5.6.24-72.2 started; log sequence number 1616819
2016-08-26 19:27:17 140149581121280 [Note] InnoDB: not started
2016-08-26 19:27:17 140150122289024 [Note] Plugin 'FEEDBACK' is disabled.
2016-08-26 19:27:17 140150122289024 [ERROR] /data/src/10.1-bug/sql/mysqld: unknown option '--aria-encrypt-tables'
2016-08-26 19:27:17 140150122289024 [ERROR] Aborting

Presumably it was fixed by this commit:

commit 937aa7ad774e0d73a2e97d46bfdaba006ff7fe1d
Author: Sergei Golubchik <serg@mariadb.org>
Date:   Thu Oct 29 09:58:11 2015 +0100
 
    MDEV-9010 Encryption preset file contains different configuration preset then documentation
    
    * clarify the comment in the preset file
    * make boolean --aria-encrypt-tables option to work without an argument

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