~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/lock.cc

  • Committer: Brian Aker
  • Date: 2008-11-28 22:44:25 UTC
  • Revision ID: brian@tangent.org-20081128224425-r0q76a2pfk9pb7ag
Removing old STMT logic from load data infile (still need to clean up the
code in the replication side). We now replicate events as write_row()

Show diffs side-by-side

added added

removed removed

Lines of Context:
469
469
        removed_locks= table->lock_count;
470
470
 
471
471
        /* Move down all table pointers above 'i'. */
472
 
        memmove((locked->table+i), (locked->table+i+1),
473
 
                (old_tables - i) * sizeof(Table*));
 
472
        memcpy((locked->table+i), (locked->table+i+1),
 
473
               (old_tables - i) * sizeof(Table*));
474
474
 
475
475
        lock_data_end= table->lock_data_start + table->lock_count;
476
476
        /* Move down all lock data pointers above 'table->lock_data_end-1' */
477
 
        memmove((locked->locks + table->lock_data_start),
478
 
                (locked->locks + lock_data_end),
479
 
                (locked->lock_count - lock_data_end) *
480
 
                sizeof(THR_LOCK_DATA*));
 
477
        memcpy((locked->locks + table->lock_data_start),
 
478
               (locked->locks + lock_data_end),
 
479
               (locked->lock_count - lock_data_end) *
 
480
               sizeof(THR_LOCK_DATA*));
481
481
 
482
482
        /*
483
483
          Fix moved table elements.