mirror of
https://github.com/MariaDB/server.git
synced 2025-01-30 18:41:56 +01:00
Bug #8183 MERGE and SYM cause wrong SHOW CREATE TABLE
Without this patch, all file elements in info have symlink resolved pathnames. This means append_create_info does not have any way of showing the correct database name when a symlinked database is used.
This commit is contained in:
parent
6a5b215443
commit
68c6470acf
1 changed files with 2 additions and 2 deletions
|
@ -515,7 +515,7 @@ MI_INFO *mi_open(const char *name, int mode, uint open_flags)
|
|||
share->base.max_key_length),
|
||||
&info.lastkey,share->base.max_key_length*3+1,
|
||||
&info.first_mbr_key, share->base.max_key_length,
|
||||
&info.filename,strlen(org_name)+1,
|
||||
&info.filename,strlen(name)+1,
|
||||
&info.rtree_recursion_state,have_rtree ? 1024 : 0,
|
||||
NullS))
|
||||
goto err;
|
||||
|
@ -524,7 +524,7 @@ MI_INFO *mi_open(const char *name, int mode, uint open_flags)
|
|||
if (!have_rtree)
|
||||
info.rtree_recursion_state= NULL;
|
||||
|
||||
strmov(info.filename,org_name);
|
||||
strmov(info.filename,name);
|
||||
memcpy(info.blobs,share->blobs,sizeof(MI_BLOB)*share->base.blobs);
|
||||
info.lastkey2=info.lastkey+share->base.max_key_length;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue