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
fe7e8788
Commit
fe7e8788
authored
Oct 08, 2004
by
joreland@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Let blobs use committedRead, this is always correct as
as read lock is held on primary table
parent
ea21d7c9
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
6 deletions
+5
-6
ndb/src/ndbapi/NdbBlob.cpp
ndb/src/ndbapi/NdbBlob.cpp
+5
-5
ndb/src/ndbapi/NdbConnection.cpp
ndb/src/ndbapi/NdbConnection.cpp
+0
-1
No files found.
ndb/src/ndbapi/NdbBlob.cpp
View file @
fe7e8788
...
...
@@ -867,7 +867,7 @@ NdbBlob::readParts(char* buf, Uint32 part, Uint32 count)
while
(
n
<
count
)
{
NdbOperation
*
tOp
=
theNdbCon
->
getNdbOperation
(
theBlobTable
);
if
(
tOp
==
NULL
||
tOp
->
readTuple
()
==
-
1
||
tOp
->
committedRead
()
==
-
1
||
setPartKeyValue
(
tOp
,
part
+
n
)
==
-
1
||
tOp
->
getValue
((
Uint32
)
3
,
buf
)
==
NULL
)
{
setErrorCode
(
tOp
);
...
...
@@ -1144,7 +1144,7 @@ NdbBlob::preExecute(ExecType anExecType, bool& batch)
// add operation before this one to read head+inline
NdbOperation
*
tOp
=
theNdbCon
->
getNdbOperation
(
theTable
,
theNdbOp
);
if
(
tOp
==
NULL
||
tOp
->
readTuple
()
==
-
1
||
tOp
->
committedRead
()
==
-
1
||
setTableKeyValue
(
tOp
)
==
-
1
||
getHeadInlineValue
(
tOp
)
==
-
1
)
{
setErrorCode
(
tOp
);
...
...
@@ -1163,7 +1163,7 @@ NdbBlob::preExecute(ExecType anExecType, bool& batch)
Uint32
pkAttrId
=
theAccessTable
->
getNoOfColumns
()
-
1
;
NdbOperation
*
tOp
=
theNdbCon
->
getNdbOperation
(
theAccessTable
,
theNdbOp
);
if
(
tOp
==
NULL
||
tOp
->
readTuple
()
==
-
1
||
tOp
->
committedRead
()
==
-
1
||
setAccessKeyValue
(
tOp
)
==
-
1
||
tOp
->
getValue
(
pkAttrId
,
theKeyBuf
.
data
)
==
NULL
)
{
setErrorCode
(
tOp
);
...
...
@@ -1172,7 +1172,7 @@ NdbBlob::preExecute(ExecType anExecType, bool& batch)
}
else
{
NdbOperation
*
tOp
=
theNdbCon
->
getNdbIndexOperation
(
theAccessTable
->
m_index
,
theTable
,
theNdbOp
);
if
(
tOp
==
NULL
||
tOp
->
readTuple
()
==
-
1
||
tOp
->
committedRead
()
==
-
1
||
setAccessKeyValue
(
tOp
)
==
-
1
||
getTableKeyValue
(
tOp
)
==
-
1
)
{
setErrorCode
(
tOp
);
...
...
@@ -1184,7 +1184,7 @@ NdbBlob::preExecute(ExecType anExecType, bool& batch)
// add op before this one to read head+inline via index
NdbIndexOperation
*
tOp
=
theNdbCon
->
getNdbIndexOperation
(
theAccessTable
->
m_index
,
theTable
,
theNdbOp
);
if
(
tOp
==
NULL
||
tOp
->
readTuple
()
==
-
1
||
tOp
->
committedRead
()
==
-
1
||
setAccessKeyValue
(
tOp
)
==
-
1
||
getHeadInlineValue
(
tOp
)
==
-
1
)
{
setErrorCode
(
tOp
);
...
...
ndb/src/ndbapi/NdbConnection.cpp
View file @
fe7e8788
...
...
@@ -528,7 +528,6 @@ NdbConnection::executeAsynchPrepare( ExecType aTypeOfExec,
tLastOp
->
theCommitIndicator
=
1
;
}
//if
}
else
{
if
(
aTypeOfExec
==
Commit
)
{
if
(
aTypeOfExec
==
Commit
&&
!
theSimpleState
)
{
/**********************************************************************
* A Transaction have been started and no more operations exist.
...
...
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