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
f05a67c7
Commit
f05a67c7
authored
Feb 08, 2007
by
tomas@poseidon.mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ndb: correction of "ignore error" patch
parent
65c9dcc0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
sql/ha_ndbcluster.cc
sql/ha_ndbcluster.cc
+4
-5
No files found.
sql/ha_ndbcluster.cc
View file @
f05a67c7
...
@@ -259,17 +259,16 @@ static int ndb_to_mysql_error(const NdbError *ndberr)
...
@@ -259,17 +259,16 @@ static int ndb_to_mysql_error(const NdbError *ndberr)
int
execute_no_commit_ignore_no_key
(
ha_ndbcluster
*
h
,
NdbTransaction
*
trans
)
int
execute_no_commit_ignore_no_key
(
ha_ndbcluster
*
h
,
NdbTransaction
*
trans
)
{
{
int
res
=
trans
->
execute
(
NdbTransaction
::
NoCommit
,
if
(
trans
->
execute
(
NdbTransaction
::
NoCommit
,
NdbOperation
::
AO_IgnoreError
,
NdbOperation
::
AO_IgnoreError
,
h
->
m_force_send
);
h
->
m_force_send
)
==
-
1
)
if
(
res
==
-
1
)
return
-
1
;
return
-
1
;
const
NdbError
&
err
=
trans
->
getNdbError
();
const
NdbError
&
err
=
trans
->
getNdbError
();
if
(
err
.
classification
!=
NdbError
::
NoError
&&
if
(
err
.
classification
!=
NdbError
::
NoError
&&
err
.
classification
!=
NdbError
::
ConstraintViolation
&&
err
.
classification
!=
NdbError
::
ConstraintViolation
&&
err
.
classification
!=
NdbError
::
NoDataFound
)
err
.
classification
!=
NdbError
::
NoDataFound
)
return
res
;
return
-
1
;
return
0
;
return
0
;
}
}
...
...
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