From: Date: April 23 2007 2:19pm Subject: bk commit into 5.1 tree (jonas:1.2496) BUG#28023 List-Archive: http://lists.mysql.com/commits/25112 X-Bug: 28023 Message-Id: <20070423121938.838A17DA90@perch.ndb.mysql.com> Below is the list of changes that have just been committed into a local 5.1 repository of jonas. When jonas does a push these changes will be propagated to the main repository and, within 24 hours after the push, to the public repository. For information on how to access the public repository see http://dev.mysql.com/doc/mysql/en/installing-source-tree.html ChangeSet@stripped, 2007-04-23 14:19:33+02:00, jonas@stripped +1 -0 ndb - bug#28023 Add/sub correct offsets (with 2 word varpart ref) storage/ndb/src/kernel/blocks/dbtup/DbtupExecQuery.cpp@stripped, 2007-04-23 14:19:31+02:00, jonas@stripped +3 -4 Add/sub correct offsets (with 2 word varpart ref) # This is a BitKeeper patch. What follows are the unified diffs for the # set of deltas contained in the patch. The rest of the patch, the part # that BitKeeper cares about, is below these diffs. # User: jonas # Host: perch.ndb.mysql.com # Root: /home/jonas/src/telco-6.1 --- 1.54/storage/ndb/src/kernel/blocks/dbtup/DbtupExecQuery.cpp 2007-04-23 14:19:38 +02:00 +++ 1.55/storage/ndb/src/kernel/blocks/dbtup/DbtupExecQuery.cpp 2007-04-23 14:19:38 +02:00 @@ -2909,11 +2909,10 @@ int ret; if (tablePtr.p->m_attributes[MM].m_no_of_varsize) { - tablePtr.p->m_offsets[MM].m_fix_header_size += - Tuple_header::HeaderSize+1; + const Uint32 XXX = Tuple_header::HeaderSize+Var_part_ref::SZ32; + tablePtr.p->m_offsets[MM].m_fix_header_size += XXX; ret = alloc_page(tablePtr.p, fragPtr.p, &page_ptr, tmp.m_page_no); - tablePtr.p->m_offsets[MM].m_fix_header_size -= - Tuple_header::HeaderSize+1; + tablePtr.p->m_offsets[MM].m_fix_header_size -= XXX; } else {