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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
c61f04b0
Commit
c61f04b0
authored
Jul 24, 2001
by
tim@white.box
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ha_berkeley.cc Fix bug in remove_key(), when key != primary_key it would
ha_berkeley.cc core dump if cursor was invalid.
parent
3ad21705
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
sql/ha_berkeley.cc
sql/ha_berkeley.cc
+1
-1
No files found.
sql/ha_berkeley.cc
View file @
c61f04b0
...
@@ -1207,7 +1207,7 @@ int ha_berkeley::remove_key(DB_TXN *trans, uint keynr, const byte *record,
...
@@ -1207,7 +1207,7 @@ int ha_berkeley::remove_key(DB_TXN *trans, uint keynr, const byte *record,
if
(
!
(
error
=
key_file
[
keynr
]
->
cursor
(
key_file
[
keynr
],
trans
,
if
(
!
(
error
=
key_file
[
keynr
]
->
cursor
(
key_file
[
keynr
],
trans
,
&
tmp_cursor
,
0
)))
&
tmp_cursor
,
0
)))
{
{
if
(
!
(
error
=
cursor
->
c_get
(
tmp_cursor
,
if
(
!
(
error
=
tmp_
cursor
->
c_get
(
tmp_cursor
,
(
keynr
==
primary_key
?
(
keynr
==
primary_key
?
prim_key
:
prim_key
:
create_key
(
&
key
,
keynr
,
key_buff2
,
record
)),
create_key
(
&
key
,
keynr
,
key_buff2
,
record
)),
...
...
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