~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/lock.cc

  • Committer: Monty Taylor
  • Date: 2008-10-06 01:30:47 UTC
  • Revision ID: monty@inaugust.com-20081006013047-6m2ejc0c4peye2k9
Removed my_free(). It turns out that it had been def'd to ignore the flags passed to it in the second arg anyway. Gotta love that.

Show diffs side-by-side

added added

removed removed

Lines of Context:
155
155
    /* Reset lock type. */
156
156
    (*ldata)->type= TL_UNLOCK;
157
157
  }
158
 
  my_free((uchar*) sql_lock, MYF(0));
 
158
  free((uchar*) sql_lock);
159
159
  *mysql_lock= 0;
160
160
}
161
161
 
335
335
    thr_multi_unlock(sql_lock->locks,sql_lock->lock_count);
336
336
  if (sql_lock->table_count)
337
337
    unlock_external(thd,sql_lock->table,sql_lock->table_count);
338
 
  my_free((uchar*) sql_lock,MYF(0));
 
338
  free((uchar*) sql_lock);
339
339
  return;
340
340
}
341
341
 
510
510
  {
511
511
    for (uint i=0; i < locked->lock_count; i++)
512
512
      thr_downgrade_write_lock(locked->locks[i], new_lock_type);
513
 
    my_free((uchar*) locked,MYF(0));
 
513
    free((uchar*) locked);
514
514
  }
515
515
}
516
516
 
527
527
  {
528
528
    for (uint i=0; i < locked->lock_count; i++)
529
529
      thr_abort_locks(locked->locks[i]->lock, upgrade_lock);
530
 
    my_free((uchar*) locked,MYF(0));
 
530
    free((uchar*) locked);
531
531
  }
532
532
  return;
533
533
}
560
560
                                     table->in_use->thread_id))
561
561
        result= true;
562
562
    }
563
 
    my_free((uchar*) locked,MYF(0));
 
563
    free((uchar*) locked);
564
564
  }
565
565
  return(result);
566
566
}
601
601
  }
602
602
 
603
603
  /* Delete old, not needed locks */
604
 
  my_free((uchar*) a,MYF(0));
605
 
  my_free((uchar*) b,MYF(0));
 
604
  free((uchar*) a);
 
605
  free((uchar*) b);
606
606
  return(sql_lock);
607
607
}
608
608