mirror of
https://github.com/MariaDB/server.git
synced 2025-01-18 13:02:28 +01:00
Bug #17122: myisam_ftdump requires write access to files although only reads from them
Instead of opening the table for read and write, myisam_ftdump is fixed to only open it for read.
This commit is contained in:
parent
02e14e6358
commit
a8223af945
1 changed files with 2 additions and 1 deletions
|
@ -86,7 +86,8 @@ int main(int argc,char *argv[])
|
|||
|
||||
init_key_cache(dflt_key_cache,MI_KEY_BLOCK_LENGTH,USE_BUFFER_INIT, 0, 0);
|
||||
|
||||
if (!(info=mi_open(argv[0],2,HA_OPEN_ABORT_IF_LOCKED|HA_OPEN_FROM_SQL_LAYER)))
|
||||
if (!(info=mi_open(argv[0], O_RDONLY,
|
||||
HA_OPEN_ABORT_IF_LOCKED|HA_OPEN_FROM_SQL_LAYER)))
|
||||
{
|
||||
error=my_errno;
|
||||
goto err;
|
||||
|
|
Loading…
Reference in a new issue