List:Commits« Previous MessageNext Message »
From:holyfoot Date:June 18 2007 12:33pm
Subject:bk commit into 5.1 tree (holyfoot:1.2554) BUG#28430
View as plain text  
Below is the list of changes that have just been committed into a local
5.1 repository of hf. When hf 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-06-18 15:33:46+05:00, holyfoot@stripped +1 -0
  Bug #28430 Failiure in replication of innodb partitiitioned tables on row/mixed format.
  
  In the ha_partition::position() we didn't calculate the number
  of the partition of the record. We used m_last_part value
  instead, relying on that it is set in other place like
  previous call of ::write_row() or something.
  In replication, we do neither of these calls before ::position()
  Delete_rows_log_event::do_exec_row calls find_and_fetch_row
  there in the case of InnoDB partitions have HA_PRIMARY_KEY_REQUIRED_FOR_POSITION
  so use position() / rnd_pos() calls to fetch the record.
  Fixed by adding partition_id calculation to the ha_partition::position()

  sql/ha_partition.cc@stripped, 2007-06-18 15:33:44+05:00, holyfoot@stripped +5 -1
    Bug #28430 Failiure in replication of innodb partitiitioned tables on row/mixed format.
    
    Calculate number of the partition in the ha_partition::position()

# 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:	holyfoot
# Host:	hfmain.(none)
# Root:	/home/hf/work/28430/my51-28430

--- 1.93/sql/ha_partition.cc	2007-06-18 15:33:51 +05:00
+++ 1.94/sql/ha_partition.cc	2007-06-18 15:33:51 +05:00
@@ -3175,9 +3175,13 @@ end:
 
 void ha_partition::position(const uchar *record)
 {
-  handler *file= m_file[m_last_part];
+  handler *file;
   DBUG_ENTER("ha_partition::position");
 
+  if (unlikely(get_part_for_delete(record, m_rec0, m_part_info, &m_last_part)))
+    m_last_part= 0;
+
+  file= m_file[m_last_part];
   file->position(record);
   int2store(ref, m_last_part);
   memcpy((ref + PARTITION_BYTES_IN_POS), file->ref,
Thread
bk commit into 5.1 tree (holyfoot:1.2554) BUG#28430holyfoot18 Jun