diff options
author | unknown <pekka@mysql.com> | 2006-02-03 14:35:29 +0100 |
---|---|---|
committer | unknown <pekka@mysql.com> | 2006-02-03 14:35:29 +0100 |
commit | dfcf430e1418ed95057c3de14cd75739c8522930 (patch) | |
tree | 5d45c6866c3ba4826d28fe8a1bd560786862efba /ndb | |
parent | 20a648dc2a0da96b6c2b2d67c56094b9b72c27b9 (diff) | |
download | mariadb-git-dfcf430e1418ed95057c3de14cd75739c8522930.tar.gz |
ndb - bugfix: tinyblob + replace => mysqld crash (no bug#)
mysql-test/r/ndb_blob.result:
do not delete unknown parts of tinyblob
mysql-test/t/ndb_blob.test:
do not delete unknown parts of tinyblob
ndb/src/ndbapi/NdbBlob.cpp:
do not delete unknown parts of tinyblob
Diffstat (limited to 'ndb')
-rw-r--r-- | ndb/src/ndbapi/NdbBlob.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ndb/src/ndbapi/NdbBlob.cpp b/ndb/src/ndbapi/NdbBlob.cpp index d1aa4e61c40..35cf71b5e5a 100644 --- a/ndb/src/ndbapi/NdbBlob.cpp +++ b/ndb/src/ndbapi/NdbBlob.cpp @@ -947,6 +947,8 @@ NdbBlob::deletePartsUnknown(Uint32 part) { DBUG_ENTER("NdbBlob::deletePartsUnknown"); DBUG_PRINT("info", ("part=%u count=all", part)); + if (thePartSize == 0) // tinyblob + DBUG_RETURN(0); static const unsigned maxbat = 256; static const unsigned minbat = 1; unsigned bat = minbat; |