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
94858930
Commit
94858930
authored
May 31, 2013
by
Andrew McDonnell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix assert in debug build on invalid latch
parent
7032a3cf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
storage/oqgraph/ha_oqgraph.cc
storage/oqgraph/ha_oqgraph.cc
+9
-2
No files found.
storage/oqgraph/ha_oqgraph.cc
View file @
94858930
...
...
@@ -778,8 +778,8 @@ static int parse_latch_string_to_legacy_int(const String& value, int &latch)
char
*
eptr
;
unsigned
long
int
v
=
strtoul
(
latchValue
.
c_ptr_safe
(),
&
eptr
,
10
);
if
(
!*
eptr
)
{
// we had an unsigned number
.
if
(
v
>
0
&&
v
<
oqgraph
::
NUM_SEARCH_OP
)
{
// we had an unsigned number
; remember 0 is valid too (nosearch))
if
(
v
>
=
0
&&
v
<
oqgraph
::
NUM_SEARCH_OP
)
{
latch
=
v
;
return
true
;
}
...
...
@@ -835,6 +835,13 @@ int ha_oqgraph::index_read_idx(byte * buf, uint index, const byte * key,
// Invalid, so warn & fail
push_warning_printf
(
current_thd
,
MYSQL_ERROR
::
WARN_LEVEL_WARN
,
ER_WRONG_ARGUMENTS
,
ER
(
ER_WRONG_ARGUMENTS
),
"OQGRAPH latch"
);
table
->
status
=
STATUS_NOT_FOUND
;
if
(
ptrdiff
)
/* fixes debug build assert - should be a tidier way to do this */
{
field
[
0
]
->
move_field_offset
(
-
ptrdiff
);
field
[
1
]
->
move_field_offset
(
-
ptrdiff
);
field
[
2
]
->
move_field_offset
(
-
ptrdiff
);
}
dbug_tmp_restore_column_map
(
table
->
read_set
,
old_map
);
return
error_code
(
oqgraph
::
NO_MORE_DATA
);
}
}
...
...
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