mirror of
https://github.com/MariaDB/server.git
synced 2025-08-07 00:04:31 +03:00
Fixed TRUNCATE TABLE against VECTOR indexes
This patch fixes only TRUNCATE by recreate variant, there seem to be no reasonable engine that uses TRUNCATE by handler method for testing. Reset index_cinfo so that mi_create is not confused by garbage passed via index_file_name and sets MY_DELETE_OLD flag. Review question: can we add a test case to make sure VECTOR index is empty indeed?
This commit is contained in:
committed by
Sergei Golubchik
parent
91a24ddc5d
commit
70575defb7
@@ -6424,6 +6424,7 @@ int ha_create_table(THD *thd, const char *path, const char *db,
|
||||
HA_CREATE_INFO index_cinfo;
|
||||
char *path_end= strmov(file_name, path);
|
||||
|
||||
bzero((char*) &index_cinfo, sizeof(index_cinfo));
|
||||
index_cinfo.alter_info= &index_ainfo;
|
||||
|
||||
if ((error= share.path.length > sizeof(file_name) - HLINDEX_BUF_LEN))
|
||||
|
Reference in New Issue
Block a user