[MDEV-6690] connect_work_size written in connect.cnf is false Created: 2014-09-04 Updated: 2014-11-15 Resolved: 2014-09-10 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | None |
| Affects Version/s: | 10.0.13 |
| Fix Version/s: | 10.0.14 |
| Type: | Bug | Priority: | Critical |
| Reporter: | Takuya Aoki (Inactive) | Assignee: | Olivier Bertrand |
| Resolution: | Cannot Reproduce | Votes: | 1 |
| Labels: | connect-engine, connect.cnf | ||
| Environment: |
CentOS release 6.5 (X86_64) |
||
| Issue Links: |
|
||||||||
| Description |
|
I installed Microsoft ODBC Driver 11 for SQL Server with unixODBC2.3.0. I am trying to insert into a connect table (SQL Server2005 table in another server) and found that connect_work_size is not set properly when written in connect.cnf. When I write inside connect.cnf below,
I get the following error in /var/lib/mysql/servername.err
The size used+free is 64M, whcih is the default connect_work_size. Although in Maria I get the following,
When I set in Maria using the command,
the error changes to a correct one as below.
|
| Comments |
| Comment by Olivier Bertrand [ 2014-09-08 ] | ||||||||||
|
connect_work_size is a (big)integer variable. To my knowlege there is no provision in MariaDB to use not numeric characters to specify it as well in .cnf file or using the set command. Therefore, 512M is interpreted as 512 and because being too small is replaced by the default value.
and got the error message "Incorrect argument type for variable 'aria_log_file'" | ||||||||||
| Comment by Takuya Aoki (Inactive) [ 2014-09-08 ] | ||||||||||
|
Thanks for your comment Olivier. When using the set command you have to use a integer variable, but that is not the case for .cnf files.
Instead of "512M " I wrote in my connect.cnf
and restarted MariaDB and tried the same command but I get the below error which indicates my connect_work_size is not set properly.
| ||||||||||
| Comment by Olivier Bertrand [ 2014-09-08 ] | ||||||||||
|
I am not familiar with using .cnf file with a plugin. Could you tell me where to place such a file so I can test and see what happens (on Windows) | ||||||||||
| Comment by Takuya Aoki (Inactive) [ 2014-09-09 ] | ||||||||||
|
I'm not familiar with the Windows environment. | ||||||||||
| Comment by Olivier Bertrand [ 2014-09-10 ] | ||||||||||
|
I don't know exactly what happens on your system but here is what I did on Windows. To start the server I added the mysqld option:
And I put in the base directory the file connect.cnf:
On debug mode, I was able to follow what was done in getopt_ull, eval_num_suffix and getopt_ull_limit_value (in my_getopt.c) |