~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to storage/myisam/mi_open.c

  • Committer: Monty Taylor
  • Date: 2008-07-02 14:35:48 UTC
  • mto: This revision was merged to the branch mainline in revision 51.
  • Revision ID: monty@inaugust.com-20080702143548-onj30ry0sugr01uw
Removed all references to THREAD.

Show diffs side-by-side

added added

removed removed

Lines of Context:
300
300
                         &share->state.key_root,keys*sizeof(my_off_t),
301
301
                         &share->state.key_del,
302
302
                         (share->state.header.max_block_size_index*sizeof(my_off_t)),
303
 
#ifdef THREAD
304
303
                         &share->key_root_lock,sizeof(rw_lock_t)*keys,
305
 
#endif
306
304
                         &share->mmap_lock,sizeof(rw_lock_t),
307
305
                         NullS))
308
306
      goto err;
509
507
    my_afree(disk_cache);
510
508
    mi_setup_functions(share);
511
509
    share->is_log_table= FALSE;
512
 
#ifdef THREAD
513
510
    thr_lock_init(&share->lock);
514
511
    VOID(pthread_mutex_init(&share->intern_lock,MY_MUTEX_INIT_FAST));
515
512
    for (i=0; i<keys; i++)
537
534
        share->lock.check_status=mi_check_status;
538
535
      }
539
536
    }
540
 
#endif
541
537
    /*
542
538
      Memory mapping can only be requested after initializing intern_lock.
543
539
    */
634
630
  bzero(info.rec_buff, mi_get_rec_buff_len(&info, info.rec_buff));
635
631
 
636
632
  *m_info=info;
637
 
#ifdef THREAD
638
633
  thr_lock_data_init(&share->lock,&m_info->lock,(void*) m_info);
639
 
#endif
640
634
  m_info->open_list.data=(void*) m_info;
641
635
  myisam_open_list=list_add(myisam_open_list,&m_info->open_list);
642
636