Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
1d35ec1a
Commit
1d35ec1a
authored
Oct 07, 2022
by
Marko Mäkelä
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Mroonga: GCC 12.2.0 -Og -Wmaybe-uninitialized
parent
4a8da624
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
47 additions
and
49 deletions
+47
-49
storage/mroonga/ha_mroonga.cpp
storage/mroonga/ha_mroonga.cpp
+7
-7
storage/mroonga/vendor/groonga/lib/db.c
storage/mroonga/vendor/groonga/lib/db.c
+40
-42
No files found.
storage/mroonga/ha_mroonga.cpp
View file @
1d35ec1a
...
...
@@ -3396,16 +3396,16 @@ int ha_mroonga::wrapper_create_index(const char *name, TABLE *table,
index_tables
,
NULL
,
tmp_share
);
}
}
}
if
(
error
)
{
for
(
uint
j
=
0
;
j
<
i
;
j
++
)
{
if
(
index_tables
[
j
])
{
grn_obj_remove
(
ctx
,
index_tables
[
j
]);
if
(
error
)
{
for
(
uint
j
=
0
;
j
<
i
;
j
++
)
{
if
(
index_tables
[
j
])
{
grn_obj_remove
(
ctx
,
index_tables
[
j
]);
}
}
grn_obj_remove
(
ctx
,
grn_table
);
grn_table
=
NULL
;
}
grn_obj_remove
(
ctx
,
grn_table
);
grn_table
=
NULL
;
}
MRN_FREE_VARIABLE_LENGTH_ARRAYS
(
index_tables
);
DBUG_RETURN
(
error
);
...
...
storage/mroonga/vendor/groonga/lib/db.c
View file @
1d35ec1a
...
...
@@ -3591,53 +3591,51 @@ grn_obj_search_column_index_by_key(grn_ctx *ctx, grn_obj *obj,
if
(
need_cast
)
{
GRN_OBJ_INIT
(
&
casted_query
,
GRN_BULK
,
0
,
key_type
);
rc
=
grn_obj_cast
(
ctx
,
query
,
&
casted_query
,
GRN_FALSE
);
if
(
rc
==
GRN_SUCCESS
)
{
key
=
GRN_BULK_HEAD
(
&
casted_query
);
key_len
=
GRN_BULK_VSIZE
(
&
casted_query
);
}
}
else
{
rc
=
GRN_SUCCESS
;
key
=
GRN_BULK_HEAD
(
query
);
key_len
=
GRN_BULK_VSIZE
(
query
);
if
(
rc
!=
GRN_SUCCESS
)
goto
fail
;
query
=
&
casted_query
;
}
if
(
rc
==
GRN_SUCCESS
)
{
if
(
grn_logger_pass
(
ctx
,
GRN_REPORT_INDEX_LOG_LEVEL
))
{
const
char
*
tag
;
if
(
optarg
)
{
switch
(
optarg
->
mode
)
{
case
GRN_OP_MATCH
:
tag
=
"[key][match]"
;
break
;
case
GRN_OP_EXACT
:
tag
=
"[key][exact]"
;
break
;
case
GRN_OP_NEAR
:
tag
=
"[key][near]"
;
break
;
case
GRN_OP_NEAR2
:
tag
=
"[key][near2]"
;
break
;
case
GRN_OP_SIMILAR
:
tag
=
"[key][similar]"
;
break
;
case
GRN_OP_REGEXP
:
tag
=
"[key][regexp]"
;
break
;
case
GRN_OP_FUZZY
:
tag
=
"[key][fuzzy]"
;
break
;
default
:
tag
=
"[key][unknown]"
;
break
;
}
}
else
{
key
=
GRN_BULK_HEAD
(
query
);
key_len
=
GRN_BULK_VSIZE
(
query
);
if
(
grn_logger_pass
(
ctx
,
GRN_REPORT_INDEX_LOG_LEVEL
))
{
const
char
*
tag
;
if
(
optarg
)
{
switch
(
optarg
->
mode
)
{
case
GRN_OP_MATCH
:
tag
=
"[key][match]"
;
break
;
case
GRN_OP_EXACT
:
tag
=
"[key][exact]"
;
break
;
case
GRN_OP_NEAR
:
tag
=
"[key][near]"
;
break
;
case
GRN_OP_NEAR2
:
tag
=
"[key][near2]"
;
break
;
case
GRN_OP_SIMILAR
:
tag
=
"[key][similar]"
;
break
;
case
GRN_OP_REGEXP
:
tag
=
"[key][regexp]"
;
break
;
case
GRN_OP_FUZZY
:
tag
=
"[key][fuzzy]"
;
break
;
default
:
tag
=
"[key][unknown]"
;
break
;
}
grn_obj_search_index_report
(
ctx
,
tag
,
obj
);
}
else
{
tag
=
"[key][exact]"
;
}
rc
=
grn_ii_sel
(
ctx
,
(
grn_ii
*
)
obj
,
key
,
key_len
,
(
grn_hash
*
)
res
,
op
,
optarg
);
grn_obj_search_index_report
(
ctx
,
tag
,
obj
);
}
rc
=
grn_ii_sel
(
ctx
,
(
grn_ii
*
)
obj
,
key
,
key_len
,
(
grn_hash
*
)
res
,
op
,
optarg
);
fail:
if
(
need_cast
)
{
GRN_OBJ_FIN
(
ctx
,
&
casted_query
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment