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
f0916967
Commit
f0916967
authored
Sep 15, 2007
by
mikael@dator6.(none)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed ndbcluster_rollback
parent
0f18ff33
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
sql/ha_ndbcluster.cc
sql/ha_ndbcluster.cc
+6
-1
No files found.
sql/ha_ndbcluster.cc
View file @
f0916967
...
...
@@ -4643,6 +4643,8 @@ static int ndbcluster_commit(handlerton *hton, THD *thd, bool all)
DBUG_ENTER
(
"ndbcluster_commit"
);
DBUG_ASSERT
(
ndb
);
PRINT_OPTION_FLAGS
(
thd
);
DBUG_PRINT
(
"enter"
,
(
"Commit %s"
,
(
all
?
"all"
:
"stmt"
)));
thd_ndb
->
start_stmt_count
=
0
;
if
(
trans
==
NULL
||
(
!
all
&&
thd
->
options
&
(
OPTION_NOT_AUTOCOMMIT
|
OPTION_BEGIN
)))
...
...
@@ -4714,8 +4716,11 @@ static int ndbcluster_rollback(handlerton *hton, THD *thd, bool all)
DBUG_ENTER
(
"ndbcluster_rollback"
);
DBUG_ASSERT
(
ndb
);
thd_ndb
->
start_stmt_count
=
0
;
if
(
!
trans
)
if
(
trans
==
NULL
||
(
!
all
&&
thd
->
options
&
(
OPTION_NOT_AUTOCOMMIT
|
OPTION_BEGIN
)))
{
/* Ignore end-of-statement until real rollback or commit is called */
DBUG_PRINT
(
"info"
,
(
"Rollback before start or end-of-statement only"
));
DBUG_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