~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to storage/myisam/mi_rsame.c

  • Committer: Brian Aker
  • Date: 2008-09-04 19:31:00 UTC
  • Revision ID: brian@tangent.org-20080904193100-l849hgghfy4urj43
Changing default character set from this point on.

Show diffs side-by-side

added added

removed removed

Lines of Context:
14
14
   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA */
15
15
 
16
16
#include "myisamdef.h"
17
 
#include <drizzled/util/test.h>
18
 
 
19
17
 
20
18
        /*
21
19
        ** Find current row with read on position or read on key
27
25
        */
28
26
 
29
27
 
30
 
int mi_rsame(MI_INFO *info, unsigned char *record, int inx)
 
28
int mi_rsame(MI_INFO *info, uchar *record, int inx)
31
29
{
32
30
  if (inx != -1 && ! mi_is_key_active(info->s->state.key_map, inx))
33
31
  {
50
48
                                      info->lastpos);
51
49
    if (info->s->concurrent_insert)
52
50
      rw_rdlock(&info->s->key_root_lock[inx]);
53
 
    _mi_search(info,info->s->keyinfo+inx,info->lastkey, USE_WHOLE_KEY,
54
 
               SEARCH_SAME,
55
 
               info->s->state.key_root[inx]);
 
51
    VOID(_mi_search(info,info->s->keyinfo+inx,info->lastkey, USE_WHOLE_KEY,
 
52
                    SEARCH_SAME,
 
53
                    info->s->state.key_root[inx]));
56
54
    if (info->s->concurrent_insert)
57
55
      rw_unlock(&info->s->key_root_lock[inx]);
58
56
  }