diff options
author | Sergey Vojtovich <svoj@mariadb.org> | 2020-05-29 22:51:45 +0400 |
---|---|---|
committer | Sergey Vojtovich <svoj@mariadb.org> | 2020-05-29 22:51:45 +0400 |
commit | 49854811fa499c70ddbf5d7d4daf22c97796b98e (patch) | |
tree | 6bf0cb3f800bdd2cac5405c5f9ad3d6721180686 /storage | |
parent | c2798784931a59f996275e14220b74f450828b4b (diff) | |
download | mariadb-git-49854811fa499c70ddbf5d7d4daf22c97796b98e.tar.gz |
Attempt fixing mroonga gcc 8 build failure
Part of MDEV-19061 - table_share used for reading statistical tables is
not protected
Diffstat (limited to 'storage')
-rw-r--r-- | storage/mroonga/mrn_table.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/storage/mroonga/mrn_table.cpp b/storage/mroonga/mrn_table.cpp index 8653092e45f..8fd48ffca17 100644 --- a/storage/mroonga/mrn_table.cpp +++ b/storage/mroonga/mrn_table.cpp @@ -932,7 +932,7 @@ MRN_SHARE *mrn_get_share(const char *table_name, TABLE *table, int *error) share->wrap_key_info = NULL; share->wrap_primary_key = MAX_KEY; } - memcpy(wrap_table_share, table->s, sizeof(*wrap_table_share)); + *wrap_table_share= *table->s; mrn_init_sql_alloc(current_thd, &(wrap_table_share->mem_root)); wrap_table_share->keys = share->wrap_keys; wrap_table_share->key_info = share->wrap_key_info; |