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
f851b03a
Commit
f851b03a
authored
Aug 05, 2004
by
joreland@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix bug for TCKEYREF's when using IgnoreError
parent
86d2906b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
0 deletions
+21
-0
ndb/src/ndbapi/NdbConnection.cpp
ndb/src/ndbapi/NdbConnection.cpp
+21
-0
No files found.
ndb/src/ndbapi/NdbConnection.cpp
View file @
f851b03a
...
@@ -1477,6 +1477,17 @@ from other transactions.
...
@@ -1477,6 +1477,17 @@ from other transactions.
theGlobalCheckpointId
=
tGCI
;
theGlobalCheckpointId
=
tGCI
;
}
else
if
((
tNoComp
>=
tNoSent
)
&&
}
else
if
((
tNoComp
>=
tNoSent
)
&&
(
theLastExecOpInList
->
theCommitIndicator
==
1
)){
(
theLastExecOpInList
->
theCommitIndicator
==
1
)){
if
(
m_abortOption
==
IgnoreError
&&
theError
.
code
!=
0
){
/**
* There's always a TCKEYCONF when using IgnoreError
*/
#ifdef VM_TRACE
ndbout_c
(
"Not completing transaction 2"
);
#endif
return
-
1
;
}
/**********************************************************************/
/**********************************************************************/
// We sent the transaction with Commit flag set and received a CONF with
// We sent the transaction with Commit flag set and received a CONF with
// no Commit flag set. This is clearly an anomaly.
// no Commit flag set. This is clearly an anomaly.
...
@@ -1720,6 +1731,16 @@ NdbConnection::OpCompleteFailure()
...
@@ -1720,6 +1731,16 @@ NdbConnection::OpCompleteFailure()
if
(
theSimpleState
==
1
)
{
if
(
theSimpleState
==
1
)
{
theCommitStatus
=
NdbConnection
::
Aborted
;
theCommitStatus
=
NdbConnection
::
Aborted
;
}
//if
}
//if
if
(
m_abortOption
==
IgnoreError
){
/**
* There's always a TCKEYCONF when using IgnoreError
*/
#ifdef VM_TRACE
ndbout_c
(
"Not completing transaction"
);
#endif
return
-
1
;
}
return
0
;
// Last operation received
return
0
;
// Last operation received
}
else
if
(
tNoComp
>
tNoSent
)
{
}
else
if
(
tNoComp
>
tNoSent
)
{
setOperationErrorCodeAbort
(
4113
);
// Too many operations,
setOperationErrorCodeAbort
(
4113
);
// Too many operations,
...
...
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