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
24f2e00b
Commit
24f2e00b
authored
Jan 14, 2014
by
Rich Prohaska
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#167 ignore dictionary too new errors
parent
aa59a828
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
9 deletions
+2
-9
storage/tokudb/ha_tokudb.cc
storage/tokudb/ha_tokudb.cc
+2
-9
No files found.
storage/tokudb/ha_tokudb.cc
View file @
24f2e00b
...
...
@@ -3995,21 +3995,14 @@ int ha_tokudb::write_row(uchar * record) {
// if we have a duplicate key error, let's check the primary key to see
// if there is a duplicate there. If so, set last_dup_key to the pk
if
(
error
==
DB_KEYEXIST
&&
!
tokudb_test
(
hidden_primary_key
)
&&
last_dup_key
!=
primary_key
)
{
int
r
=
share
->
file
->
getf_set
(
share
->
file
,
txn
,
0
,
&
prim_key
,
smart_dbt_do_nothing
,
NULL
);
int
r
=
share
->
file
->
getf_set
(
share
->
file
,
txn
,
0
,
&
prim_key
,
smart_dbt_do_nothing
,
NULL
);
if
(
r
==
0
)
{
// if we get no error, that means the row
// was found and this is a duplicate key,
// so we set last_dup_key
last_dup_key
=
primary_key
;
}
else
if
(
r
!=
DB_NOTFOUND
)
{
else
if
(
r
!=
DB_NOTFOUND
&&
r
!=
TOKUDB_MVCC_DICTIONARY_TOO_NEW
)
{
// if some other error is returned, return that to the user.
error
=
r
;
}
...
...
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