mirror of
https://github.com/MariaDB/server.git
synced 2025-01-18 13:02:28 +01:00
ndb - bug#29102 : use locked read even for blob parts
This commit is contained in:
parent
822fd77ab2
commit
af1ce5c230
1 changed files with 6 additions and 1 deletions
|
@ -892,7 +892,12 @@ NdbBlob::readParts(char* buf, Uint32 part, Uint32 count)
|
|||
while (n < count) {
|
||||
NdbOperation* tOp = theNdbCon->getNdbOperation(theBlobTable);
|
||||
if (tOp == NULL ||
|
||||
tOp->committedRead() == -1 ||
|
||||
/*
|
||||
* This was committedRead() before. However lock on main
|
||||
* table tuple does not fully protect blob parts since DBTUP
|
||||
* commits each tuple separately.
|
||||
*/
|
||||
tOp->readTuple() == -1 ||
|
||||
setPartKeyValue(tOp, part + n) == -1 ||
|
||||
tOp->getValue((Uint32)3, buf) == NULL) {
|
||||
setErrorCode(tOp);
|
||||
|
|
Loading…
Reference in a new issue