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
9497ee2f
Commit
9497ee2f
authored
Oct 13, 2004
by
joreland@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
testBasic -n NoCommit626
Handle commit of zero operations
parent
57612c47
Changes
2
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
67 additions
and
67 deletions
+67
-67
ndb/src/kernel/blocks/dbtc/DbtcMain.cpp
ndb/src/kernel/blocks/dbtc/DbtcMain.cpp
+7
-19
ndb/test/ndbapi/testBasic.cpp
ndb/test/ndbapi/testBasic.cpp
+60
-48
No files found.
ndb/src/kernel/blocks/dbtc/DbtcMain.cpp
View file @
9497ee2f
...
@@ -5107,27 +5107,15 @@ void Dbtc::execLQHKEYREF(Signal* signal)
...
@@ -5107,27 +5107,15 @@ void Dbtc::execLQHKEYREF(Signal* signal)
*---------------------------------------------------------------------*/
*---------------------------------------------------------------------*/
regApiPtr
->
lqhkeyreqrec
--
;
regApiPtr
->
lqhkeyreqrec
--
;
if
(
regApiPtr
->
lqhkeyconfrec
==
regApiPtr
->
lqhkeyreqrec
)
{
if
(
regApiPtr
->
lqhkeyconfrec
==
regApiPtr
->
lqhkeyreqrec
)
{
if
((
regApiPtr
->
lqhkeyconfrec
==
0
)
&&
(
regApiPtr
->
apiConnectstate
==
CS_START_COMMITTING
))
{
if
(
abort
==
TcKeyReq
::
IgnoreError
){
jam
();
regApiPtr
->
returnsignal
=
RS_NO_RETURN
;
abort010Lab
(
signal
);
return
;
}
/*----------------------------------------------------------------
* Not a single operation was successful.
* This we report as an aborted transaction
* to avoid performing a commit of zero operations.
*----------------------------------------------------------------*/
TCKEY_abort
(
signal
,
54
);
return
;
}
//if
if
(
regApiPtr
->
apiConnectstate
==
CS_START_COMMITTING
)
{
if
(
regApiPtr
->
apiConnectstate
==
CS_START_COMMITTING
)
{
if
(
regApiPtr
->
lqhkeyconfrec
)
{
jam
();
jam
();
diverify010Lab
(
signal
);
diverify010Lab
(
signal
);
}
else
{
jam
();
sendtckeyconf
(
signal
,
1
);
regApiPtr
->
apiConnectstate
=
CS_CONNECTED
;
}
return
;
return
;
}
else
if
(
regApiPtr
->
tckeyrec
>
0
||
regApiPtr
->
m_exec_flag
)
{
}
else
if
(
regApiPtr
->
tckeyrec
>
0
||
regApiPtr
->
m_exec_flag
)
{
jam
();
jam
();
...
...
ndb/test/ndbapi/testBasic.cpp
View file @
9497ee2f
This diff is collapsed.
Click to expand it.
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