~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to storage/myisam/ft_nlq_search.c

MyISAM cleanups.

Show diffs side-by-side

added added

removed removed

Lines of Context:
73
73
  MI_KEYDEF    *keyinfo=info->s->keyinfo+aio->keynr;
74
74
  my_off_t     key_root=info->s->state.key_root[aio->keynr];
75
75
  uint         extra=HA_FT_WLEN+info->s->base.rec_reflength;
76
 
#if HA_FT_WTYPE == HA_KEYTYPE_FLOAT
77
76
  float tmp_weight;
78
 
#else
79
 
#error
80
 
#endif
81
77
 
82
78
  DBUG_ENTER("walk_and_match");
83
79
 
122
118
      r=_mi_search_first(info, keyinfo, key_root);
123
119
      goto do_skip;
124
120
    }
125
 
#if HA_FT_WTYPE == HA_KEYTYPE_FLOAT
126
121
    tmp_weight=*(float*)&subkeys;
127
 
#else
128
 
#error
129
 
#endif
130
122
  /* The following should be safe, even if we compare doubles */
131
123
    if (tmp_weight==0)
132
124
      DBUG_RETURN(doc_cnt); /* stopword, doc_cnt should be 0 */