~ubuntu-branches/ubuntu/maverick/mysql-5.1/maverick-proposed

« back to all changes in this revision

Viewing changes to sql/log_event_old.cc

  • Committer: Package Import Robot
  • Author(s): Marc Deslauriers
  • Date: 2012-02-22 14:16:05 UTC
  • mto: This revision was merged to the branch mainline in revision 20.
  • Revision ID: package-import@ubuntu.com-20120222141605-nxlu9yzc6attylc2
Tags: upstream-5.1.61
ImportĀ upstreamĀ versionĀ 5.1.61

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved.
 
2
 
 
3
   This program is free software; you can redistribute it and/or modify
 
4
   it under the terms of the GNU General Public License as published by
 
5
   the Free Software Foundation; version 2 of the License.
 
6
 
 
7
   This program is distributed in the hope that it will be useful,
 
8
   but WITHOUT ANY WARRANTY; without even the implied warranty of
 
9
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
10
   GNU General Public License for more details.
 
11
 
 
12
   You should have received a copy of the GNU General Public License
 
13
   along with this program; if not, write to the Free Software
 
14
   Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301  USA */
1
15
 
2
16
#include "mysql_priv.h"
3
17
#ifndef MYSQL_CLIENT
441
455
 
442
456
 DBUG_ASSERT(master_reclength <= table->s->reclength);
443
457
  if (master_reclength < table->s->reclength)
444
 
    bmove_align(table->record[0] + master_reclength,
 
458
    memcpy(table->record[0] + master_reclength,
445
459
                table->record[1] + master_reclength,
446
460
                table->s->reclength - master_reclength);
447
461
    
720
734
      rnd_pos() returns the record in table->record[0], so we have to
721
735
      move it to table->record[1].
722
736
     */
723
 
    bmove_align(table->record[1], table->record[0], table->s->reclength);
 
737
    memcpy(table->record[1], table->record[0], table->s->reclength);
724
738
    DBUG_RETURN(error);
725
739
  }
726
740
 
1213
1227
    overwriting the default values that where put there by the
1214
1228
    unpack_row() function.
1215
1229
  */
1216
 
  bmove_align(table->record[0], m_after_image, table->s->reclength);
 
1230
  memcpy(table->record[0], m_after_image, table->s->reclength);
1217
1231
  copy_extra_record_fields(table, m_master_reclength, m_width);
1218
1232
 
1219
1233
  /*