~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to storage/myisam/mi_locking.c

  • Committer: Brian Aker
  • Date: 2008-10-06 06:47:29 UTC
  • Revision ID: brian@tangent.org-20081006064729-2i9mhjkzyvow9xsm
RemoveĀ uint.

Show diffs side-by-side

added added

removed removed

Lines of Context:
30
30
int mi_lock_database(MI_INFO *info, int lock_type)
31
31
{
32
32
  int error;
33
 
  uint count;
 
33
  uint32_t count;
34
34
  MYISAM_SHARE *share=info->s;
35
 
  uint flag;
 
35
  uint32_t flag;
36
36
 
37
37
  if (share->options & HA_OPTION_READ_ONLY_DATA ||
38
38
      info->lock_type == lock_type)
373
373
  request
374
374
*/
375
375
 
376
 
int _mi_writeinfo(register MI_INFO *info, uint operation)
 
376
int _mi_writeinfo(register MI_INFO *info, uint32_t operation)
377
377
{
378
378
  int error,olderror;
379
379
  MYISAM_SHARE *share=info->s;
486
486
  int lock_error=0,write_error=0;
487
487
  if (share->global_changed)
488
488
  {
489
 
    uint old_lock=info->lock_type;
 
489
    uint32_t old_lock=info->lock_type;
490
490
    share->global_changed=0;
491
491
    lock_error=mi_lock_database(info,F_WRLCK);
492
492
    /* Its not fatal even if we couldn't get the lock ! */