We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9ef20ac commit e05e6abCopy full SHA for e05e6ab
sql/sql_base.cc
@@ -9916,13 +9916,10 @@ int TABLE::hlindex_open(uint nr)
9916
s->lock_share();
9917
if (!s->hlindex)
9918
{
9919
- s->unlock_share();
9920
- TABLE_SHARE *share;
9921
- char *path= NULL;
9922
size_t path_len= s->normalized_path.length + HLINDEX_BUF_LEN;
9923
-
9924
- share= (TABLE_SHARE*)alloc_root(&s->mem_root, sizeof(*share));
9925
- path= (char*)alloc_root(&s->mem_root, path_len);
+ TABLE_SHARE *share= (TABLE_SHARE*)alloc_root(&s->mem_root, sizeof *share);
+ char *path= (char*)alloc_root(&s->mem_root, path_len);
+ s->unlock_share();
9926
if (!share || !path)
9927
return 1;
9928
0 commit comments