~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/myisam/mi_info.cc

  • Committer: Brian Aker
  • Date: 2010-01-27 18:58:12 UTC
  • Revision ID: brian@gaz-20100127185812-n62n0vwetnx8jrjy
Remove dead code.

Show diffs side-by-side

added added

removed removed

Lines of Context:
15
15
 
16
16
/* Return useful base information for an open table */
17
17
 
18
 
#include "myisamdef.h"
19
 
#ifdef  __WIN__
 
18
#include "myisam_priv.h"
20
19
#include <sys/stat.h>
21
 
#endif
 
20
#include "drizzled/my_error.h"
22
21
 
23
22
        /* Get position to last record */
24
23
 
31
30
/* Get information about the table */
32
31
/* if flag == 2 one get current info (no sync from database */
33
32
 
34
 
int mi_status(MI_INFO *info, register MI_ISAMINFO *x, uint flag)
 
33
int mi_status(MI_INFO *info, register MI_ISAMINFO *x, uint32_t flag)
35
34
{
36
35
  struct stat state;
37
36
  MYISAM_SHARE *share=info->s;
42
41
  if (!(flag & HA_STATUS_NO_LOCK))
43
42
  {
44
43
    pthread_mutex_lock(&share->intern_lock);
45
 
    VOID(_mi_readinfo(info,F_RDLCK,0));
 
44
    _mi_readinfo(info,F_RDLCK,0);
46
45
    fast_mi_writeinfo(info);
47
46
    pthread_mutex_unlock(&share->intern_lock);
48
47
  }
73
72
    x->filenr    = info->dfile;
74
73
    x->options   = share->options;
75
74
    x->create_time=share->state.create_time;
76
 
    x->reflength= mi_get_pointer_length(share->base.max_data_file_length,
77
 
                                        myisam_data_pointer_size);
 
75
    x->reflength= mi_get_pointer_length(share->base.max_data_file_length, data_pointer_size);
78
76
    x->record_offset= ((share->options &
79
77
                        (HA_OPTION_PACK_RECORD | HA_OPTION_COMPRESS_RECORD)) ?
80
78
                       0L : share->base.pack_reclength);