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
f5df855f
Commit
f5df855f
authored
Sep 08, 2005
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge mysql.com:/home/stewart/Documents/MySQL/4.1/main
into mysql.com:/home/stewart/Documents/MySQL/4.1/bug11607
parents
7d64ba09
eac727b5
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
2 deletions
+24
-2
ndb/src/ndbapi/NdbConnection.cpp
ndb/src/ndbapi/NdbConnection.cpp
+24
-2
No files found.
ndb/src/ndbapi/NdbConnection.cpp
View file @
f5df855f
...
...
@@ -280,6 +280,7 @@ NdbConnection::execute(ExecType aTypeOfExec,
AbortOption
abortOption
,
int
forceSend
)
{
NdbError
savedError
=
theError
;
DBUG_ENTER
(
"NdbConnection::execute"
);
DBUG_PRINT
(
"enter"
,
(
"aTypeOfExec: %d, abortOption: %d"
,
aTypeOfExec
,
abortOption
));
...
...
@@ -309,7 +310,11 @@ NdbConnection::execute(ExecType aTypeOfExec,
NdbBlob
*
tBlob
=
tPrepOp
->
theBlobList
;
while
(
tBlob
!=
NULL
)
{
if
(
tBlob
->
preExecute
(
tExecType
,
batch
)
==
-
1
)
{
ret
=
-
1
;
if
(
savedError
.
code
==
0
)
savedError
=
theError
;
}
tBlob
=
tBlob
->
theNext
;
}
if
(
batch
)
{
...
...
@@ -338,7 +343,11 @@ NdbConnection::execute(ExecType aTypeOfExec,
NdbBlob
*
tBlob
=
tOp
->
theBlobList
;
while
(
tBlob
!=
NULL
)
{
if
(
tBlob
->
preCommit
()
==
-
1
)
{
ret
=
-
1
;
if
(
savedError
.
code
==
0
)
savedError
=
theError
;
}
tBlob
=
tBlob
->
theNext
;
}
}
...
...
@@ -360,7 +369,12 @@ NdbConnection::execute(ExecType aTypeOfExec,
}
if
(
executeNoBlobs
(
tExecType
,
abortOption
,
forceSend
)
==
-
1
)
{
ret
=
-
1
;
if
(
savedError
.
code
==
0
)
savedError
=
theError
;
}
#ifdef ndb_api_crash_on_complex_blob_abort
assert
(
theFirstOpInList
==
NULL
&&
theLastOpInList
==
NULL
);
#else
...
...
@@ -375,7 +389,11 @@ NdbConnection::execute(ExecType aTypeOfExec,
while
(
tBlob
!=
NULL
)
{
// may add new operations if batch
if
(
tBlob
->
postExecute
(
tExecType
)
==
-
1
)
{
ret
=
-
1
;
if
(
savedError
.
code
==
0
)
savedError
=
theError
;
}
tBlob
=
tBlob
->
theNext
;
}
}
...
...
@@ -406,6 +424,10 @@ NdbConnection::execute(ExecType aTypeOfExec,
ndbout
<<
"completed ops: "
<<
n
<<
endl
;
}
#endif
if
(
savedError
.
code
!=
0
&&
theError
.
code
==
4350
)
// Trans already aborted
theError
=
savedError
;
DBUG_RETURN
(
ret
);
}
...
...
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