ndb - bug#28023 (51-main)

  Add/sub correct offsets (with 2 word varpart ref)
parent 770e48fc
...@@ -2915,11 +2915,10 @@ Dbtup::nr_update_gci(Uint32 fragPtrI, const Local_key* key, Uint32 gci) ...@@ -2915,11 +2915,10 @@ Dbtup::nr_update_gci(Uint32 fragPtrI, const Local_key* key, Uint32 gci)
int ret; int ret;
if (tablePtr.p->m_attributes[MM].m_no_of_varsize) if (tablePtr.p->m_attributes[MM].m_no_of_varsize)
{ {
tablePtr.p->m_offsets[MM].m_fix_header_size += const Uint32 XXX = Tuple_header::HeaderSize+Var_part_ref::SZ32;
Tuple_header::HeaderSize+1; tablePtr.p->m_offsets[MM].m_fix_header_size += XXX;
ret = alloc_page(tablePtr.p, fragPtr.p, &page_ptr, tmp.m_page_no); ret = alloc_page(tablePtr.p, fragPtr.p, &page_ptr, tmp.m_page_no);
tablePtr.p->m_offsets[MM].m_fix_header_size -= tablePtr.p->m_offsets[MM].m_fix_header_size -= XXX;
Tuple_header::HeaderSize+1;
} }
else else
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment