List:Internals« Previous MessageNext Message »
From:jonas Date:October 17 2005 8:49am
Subject:bk commit into 5.1 tree (jonas:1.2052)
View as plain text  
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
  1.2052 05/10/17 10:49:19 jonas@stripped +1 -0
  ndb -
    fix testOperations

  storage/ndb/src/kernel/blocks/dbtup/DbtupExecQuery.cpp
    1.82 05/10/17 10:49:15 jonas@stripped +4 -2
    fix testOperations

# 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/mysql-5.1-ndb-dd

--- 1.81/storage/ndb/src/kernel/blocks/dbtup/DbtupExecQuery.cpp	2005-10-17 09:16:21 +02:00
+++ 1.82/storage/ndb/src/kernel/blocks/dbtup/DbtupExecQuery.cpp	2005-10-17 10:49:15 +02:00
@@ -1231,10 +1231,12 @@
 			      Operationrec* regOperPtr,
 			      Tablerec* regTabPtr)
 {
+  Uint32 disk_undo = regTabPtr->m_no_of_disk_attributes ? 
+    sizeof(Dbtup::Disk_undo::Alloc) >> 2 : 0;
   regOperPtr->nextActiveOp= RNIL;
   regOperPtr->prevActiveOp= RNIL;
   regOperPtr->op_struct.in_active_list= true;
-  regOperPtr->m_undo_buffer_space= regTabPtr->m_no_of_disk_attributes ? sizeof(Dbtup::Disk_undo::Alloc) >> 2 : 0;
+  regOperPtr->m_undo_buffer_space= disk_undo; 
   
   req_struct->check_offset[MM]= regTabPtr->get_check_offset(MM);
   req_struct->check_offset[DD]= regTabPtr->get_check_offset(DD);
@@ -1293,7 +1295,7 @@
 	 regTabPtr->m_offsets[DD].m_null_offset, 0xFF, 
 	 4*regTabPtr->m_offsets[DD].m_null_words);
   req_struct->m_tuple_ptr->m_header_bits= 
-    Tuple_header::DISK_ALLOC | Tuple_header::DISK_INLINE;
+    disk_undo ? (Tuple_header::DISK_ALLOC | Tuple_header::DISK_INLINE) : 0;
 }
 
 int Dbtup::handleInsertReq(Signal* signal,
Thread
bk commit into 5.1 tree (jonas:1.2052)jonas17 Oct