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
055a9681
Commit
055a9681
authored
Sep 08, 2005
by
stewart@mysql.com
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
1e6736b5
bfd4b626
Changes
1
Hide 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 @
055a9681
...
@@ -280,6 +280,7 @@ NdbConnection::execute(ExecType aTypeOfExec,
...
@@ -280,6 +280,7 @@ NdbConnection::execute(ExecType aTypeOfExec,
AbortOption
abortOption
,
AbortOption
abortOption
,
int
forceSend
)
int
forceSend
)
{
{
NdbError
savedError
=
theError
;
DBUG_ENTER
(
"NdbConnection::execute"
);
DBUG_ENTER
(
"NdbConnection::execute"
);
DBUG_PRINT
(
"enter"
,
(
"aTypeOfExec: %d, abortOption: %d"
,
DBUG_PRINT
(
"enter"
,
(
"aTypeOfExec: %d, abortOption: %d"
,
aTypeOfExec
,
abortOption
));
aTypeOfExec
,
abortOption
));
...
@@ -309,7 +310,11 @@ NdbConnection::execute(ExecType aTypeOfExec,
...
@@ -309,7 +310,11 @@ NdbConnection::execute(ExecType aTypeOfExec,
NdbBlob
*
tBlob
=
tPrepOp
->
theBlobList
;
NdbBlob
*
tBlob
=
tPrepOp
->
theBlobList
;
while
(
tBlob
!=
NULL
)
{
while
(
tBlob
!=
NULL
)
{
if
(
tBlob
->
preExecute
(
tExecType
,
batch
)
==
-
1
)
if
(
tBlob
->
preExecute
(
tExecType
,
batch
)
==
-
1
)
{
ret
=
-
1
;
ret
=
-
1
;
if
(
savedError
.
code
==
0
)
savedError
=
theError
;
}
tBlob
=
tBlob
->
theNext
;
tBlob
=
tBlob
->
theNext
;
}
}
if
(
batch
)
{
if
(
batch
)
{
...
@@ -338,7 +343,11 @@ NdbConnection::execute(ExecType aTypeOfExec,
...
@@ -338,7 +343,11 @@ NdbConnection::execute(ExecType aTypeOfExec,
NdbBlob
*
tBlob
=
tOp
->
theBlobList
;
NdbBlob
*
tBlob
=
tOp
->
theBlobList
;
while
(
tBlob
!=
NULL
)
{
while
(
tBlob
!=
NULL
)
{
if
(
tBlob
->
preCommit
()
==
-
1
)
if
(
tBlob
->
preCommit
()
==
-
1
)
ret
=
-
1
;
{
ret
=
-
1
;
if
(
savedError
.
code
==
0
)
savedError
=
theError
;
}
tBlob
=
tBlob
->
theNext
;
tBlob
=
tBlob
->
theNext
;
}
}
}
}
...
@@ -360,7 +369,12 @@ NdbConnection::execute(ExecType aTypeOfExec,
...
@@ -360,7 +369,12 @@ NdbConnection::execute(ExecType aTypeOfExec,
}
}
if
(
executeNoBlobs
(
tExecType
,
abortOption
,
forceSend
)
==
-
1
)
if
(
executeNoBlobs
(
tExecType
,
abortOption
,
forceSend
)
==
-
1
)
ret
=
-
1
;
{
ret
=
-
1
;
if
(
savedError
.
code
==
0
)
savedError
=
theError
;
}
#ifdef ndb_api_crash_on_complex_blob_abort
#ifdef ndb_api_crash_on_complex_blob_abort
assert
(
theFirstOpInList
==
NULL
&&
theLastOpInList
==
NULL
);
assert
(
theFirstOpInList
==
NULL
&&
theLastOpInList
==
NULL
);
#else
#else
...
@@ -375,7 +389,11 @@ NdbConnection::execute(ExecType aTypeOfExec,
...
@@ -375,7 +389,11 @@ NdbConnection::execute(ExecType aTypeOfExec,
while
(
tBlob
!=
NULL
)
{
while
(
tBlob
!=
NULL
)
{
// may add new operations if batch
// may add new operations if batch
if
(
tBlob
->
postExecute
(
tExecType
)
==
-
1
)
if
(
tBlob
->
postExecute
(
tExecType
)
==
-
1
)
{
ret
=
-
1
;
ret
=
-
1
;
if
(
savedError
.
code
==
0
)
savedError
=
theError
;
}
tBlob
=
tBlob
->
theNext
;
tBlob
=
tBlob
->
theNext
;
}
}
}
}
...
@@ -406,6 +424,10 @@ NdbConnection::execute(ExecType aTypeOfExec,
...
@@ -406,6 +424,10 @@ NdbConnection::execute(ExecType aTypeOfExec,
ndbout
<<
"completed ops: "
<<
n
<<
endl
;
ndbout
<<
"completed ops: "
<<
n
<<
endl
;
}
}
#endif
#endif
if
(
savedError
.
code
!=
0
&&
theError
.
code
==
4350
)
// Trans already aborted
theError
=
savedError
;
DBUG_RETURN
(
ret
);
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