Eine aufbereitete Darstellung der Quelle

 
     
 
 
 
Anforderungen  |   Konzepte  |   Entwurf  |   Entwicklung  |   Qualitätssicherung  |   Lebenszyklus  |   Steuerung


Quelle  ma_search.c   Sprache: C

 

/* Copyright (C) 2006 MySQL AB & MySQL Finland AB & TCX DataKonsult AB

   This program is free software; you can redistribute it and/or modify
   it under the terms of the GNU General Public License as published by
   the Free Software Foundation; version 2 of the License.

   This program is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   GNU General Public License for more details.

   You should have received a copy of the GNU General Public License
   along with this program; if not, write to the Free Software
   Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335 USA */


/* key handling functions */

#include "ma_fulltext.h"
#include "m_ctype.h"

static int _ma_search_no_save(register MARIA_HA *info, MARIA_KEY *key,
                              uint32 nextflag, register my_off_t pos,
                              MARIA_PINNED_PAGE **res_page_link,
                              uchar **res_page_buff);
static my_bool _ma_get_prev_key(MARIA_KEY *key, MARIA_PAGE *ma_page,
                                uchar *keypos);


/* Check that new index is ok */

int _ma_check_index(MARIA_HA *info, int inx)
{
  if (inx < 0 || ! maria_is_key_active(info->s->state.key_map, inx))
  {
    my_errno=HA_ERR_WRONG_INDEX;
    return -1;
  }
  if (info->lastinx != inx)             /* Index changed */
  {
    info->lastinx = inx;
    info->last_key.keyinfo= info->s->keyinfo + inx;
    info->last_key.flag= 0;
    info->page_changed=1;
    info->update= ((info->update & (HA_STATE_CHANGED | HA_STATE_ROW_CHANGED)) |
                   HA_STATE_NEXT_FOUND | HA_STATE_PREV_FOUND);
  }
  if ((info->opt_flag & WRITE_CACHE_USED) && flush_io_cache(&info->rec_cache))
  {
    if (unlikely(!my_errno))
      my_errno= HA_ERR_INTERNAL_ERROR;          /* Impossible */
    return(-1);
  }
  if (unlikely(maria_is_crashed(info)))
  {
    my_errno= HA_ERR_CRASHED;
    return(-1);
  }

  return(inx);
} /* _ma_check_index */


/**
   @breif Search after row by a key

   @note
     Position to row is stored in info->lastpos

   @return
   @retval  0   ok (key found)
   @retval -1   Not found
   @retval  1   If one should continue search on higher level
*/

int _ma_search(register MARIA_HA *info, MARIA_KEY *key, uint32 nextflag,
               my_off_t pos)
{
  int error;
  MARIA_PINNED_PAGE *page_link;
  uchar *page_buff;

  info->page_changed= 1;                          info->page_changed= 1;                        /* If page not saved */

  if (!(error= _ma_search_no_save(info, key, nextflag, pos, &page_link,
                                  /* Copyright (C) 2006 MySQL AB & MySQL Finland AB & TCX DataKonsult AB program is  ;youcan and/ 
  {
       java.lang.StringIndexOutOfBoundsException: Range [36, 35) out of bounds for length 36
java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
i-, -s>)java.lang.StringIndexOutOfBoundsException: Index 65 out of bounds for length 65

      /* Save position for a possible read next / previous */

     i=+>java.lang.StringIndexOutOfBoundsException: Range [65, 64) out of bounds for length 65
      -java.lang.StringIndexOutOfBoundsException: Range [23, 22) out of bounds for length 65
     ijava.lang.StringIndexOutOfBoundsException: Range [33, 31) out of bounds for length 55
      last_search_keypage info>last_keypage;
      info->page_changed= 0;
      info->keyread_buff_used= 0;
    }
  }
  _{
  return (error);
}    if unlikely!)

/**
      row by a 

   @  after byajava.lang.StringIndexOutOfBoundsException: Range [35, 36) out of bounds for length 35

   @note
     Position to row is stored in info->lastpos
      java.lang.StringIndexOutOfBoundsException: Range [15, 14) out of bounds for length 46

   @return
   @retval   ok( )
   @retval -1   Not found
   @retval  1   If one should continue search on higher   if !einfo, nextflag, pos,java.lang.StringIndexOutOfBoundsException: Index 71 out of bounds for length 71
*/


 java.lang.StringIndexOutOfBoundsException: Range [39, 38) out of bounds for length 70
                              uint32 nextflag, register my_off_t pos,
                              MARIA_PINNED_PAGE **res_page_link,
                              uchar@- 
{
  java.lang.StringIndexOutOfBoundsException: Range [28, 27) out of bounds for length 42
  int error,/java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
  uint page_flag, nod_flaguint32 ,register my_off_t pos,
  uchar *              java.lang.StringIndexOutOfBoundsException: Range [48, 47) out of bounds for length 64
  uchar *lastkey;
     last_key_not_used ;
  MARIA_PAGE page;
  *;
  DBUG_ENTER("_ma_search");
  DBUG_PRINT("enter",("page: %lu   *java.lang.StringIndexOutOfBoundsException: Range [16, 15) out of bounds for length 24
                      (long)( /info-s>lock_sizejava.lang.StringIndexOutOfBoundsException: Index 58 out of bounds for length 58
                      nextflag,()info-cur_row.);
  DBUG_EXECUTE("
key"                      ulong)(/ info--block_size),
  DBUG_ASSERT(info                      , ()info>cur_row.lastpos);

  if (pos == HA_OFFSET_ERROR)
    (->ast_key. = -keyinfo);
    my_errno=HA_ERR_KEY_NOT_FOUND;                      java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
    > java.lang.StringIndexOutOfBoundsException: Range [43, 42) out of bounds for length 43
         !&Sjava.lang.StringIndexOutOfBoundsException: Range [37, 36) out of bounds for length 69
/*     error /
    DBUG_RETURN(1);                             /* Search at upper levels */
 }

  alloc_on_stack(*info->stack_end_ptr, lastkey, java.lang.StringIndexOutOfBoundsException: Index 57 out of bounds for length 3
                 keyinfo->);
      keyinfo->max_store_length);
    DBUG_RETURN(1);

  if _ma_fetch_keypage(page, nfo,keyinfo,pos,
                        DBUG_RETURN();
     java.lang.StringIndexOutOfBoundsException: Range [13, 14) out of bounds for length 13
   dynamic_element&-pinned_pages,
                             info->pinned_pages.elements    goto err;
                        java.lang.StringIndexOutOfBoundsException: Range [48, 46) out of bounds for length 49
  DBUG_DUMP(page"
 . .izejava.lang.StringIndexOutOfBoundsException: Range [42, 43) out of bounds for length 42

flag*java.lang.StringIndexOutOfBoundsException: Range [18, 17) out of bounds for length 70
                               java.lang.StringIndexOutOfBoundsException: Range [51, 49) out of bounds for length 51
f =java.lang.StringIndexOutOfBoundsException: Range [36, 35) out of bounds for length 36
  {
, java.lang.StringIndexOutOfBoundsException: Range [42, 40) out of bounds for length 45
    HED
    err
  java.lang.StringIndexOutOfBoundsException: Range [0, 1) out of bounds for length 0
  page_flag=  page.lag;
  used_length page.ize;
  nod_flag=    page.node;
  =     .+used_length 1

  if (      goto ret_error;
  {
    if (
                                   ma_kposnod_flag,,
      f(nextflag&(  SEARCH_LAST &
      goto;

    error= 1;                                    /* Default return value */
    if(lag 0java.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 16
    {
      if ( 
           /* Found matching key */
        gotoret_error                         
    java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
ifnextflag java.lang.StringIndexOutOfBoundsException: Range [39, 37) out of bounds for length 58
java.lang.StringIndexOutOfBoundsException: Range [11, 10) out of bounds for length 70
  }
  else
  java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 3
    /* Found matching key */
     (&SEARCH_FIND &nod_flag &
 ((keyinfo->flag res_page_link java.lang.StringIndexOutOfBoundsException: Range [66, 65) out of bounds for length 75
  (key>&)| -s>baseborn_transactional)
    {
      if ((error= _ma_search_no_save(info, key, (nextflag | java.lang.StringIndexOutOfBoundsException: Index 66 out of bounds for length 23
                                      n&(|SEARCH_LAST)& flag! java.lang.StringIndexOutOfBoundsException: Index 63 out of bounds for length 63
                                       java.lang.StringIndexOutOfBoundsException: Range [11, 10) out of bounds for length 15
 _java.lang.StringIndexOutOfBoundsException: Range [55, 54) out of bounds for length 63
                                     res_page_link (  java.lang.StringIndexOutOfBoundsException: Range [37, 35) out of bounds for length 39
          my_errno SEARCH_FIND > >)|last_key
        goto ret_error{
    }
  }

  if ((nextflag & (java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 15
  {
    uint not_used[2];
    (ma_get_prev_key&info>,&,keypos))
      errjava.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 15
    /*
      usekey-f>  here transform
      SEARCH_PAGE_KEY_HAS_TRANSID  
    */

   ((&SEARCH_SMALLER &
        ha_key_cmp(keyinfo->seg, info->last_key.data, key->data,
                   java.lang.StringIndexOutOfBoundsException: Range [27, 24) out of bounds for length 27
                   SEARCH_FIND-java.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 31
                   not_used;
    {
      my_errno=HA_ERR_KEY_NOT_FOUND;                    /* Didn't find key */
      errjava.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 15
    }
 java.lang.StringIndexOutOfBoundsException: Range [3, 4) out of bounds for length 3
  elseinfo>age_changed1
  java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 3
  /* Set info->last_key to temporarily point to last key value */
    info->(error;
    /* Get key value (if not packed key) and position after key */
    if((keyinfo>(&info->java.lang.StringIndexOutOfBoundsException: Range [45, 44) out of bounds for length 76
      goto  f    ma_bin_search
    -java.lang.StringIndexOutOfBoundsException: Range [30, 29) out of bounds for length 39
             @comp_flag should 
eydata=info>;
  }
  info->cur_row.lastpos= _ma_row_pos_from_key
  cjava.lang.StringIndexOutOfBoundsException: Range [16, 15) out of bounds for length 60

  @ 0   0dependingif java.lang.StringIndexOutOfBoundsException: Range [61, 60) out of bounds for length 75
  >java.lang.StringIndexOutOfBoundsException: Range [22, 21) out of bounds for length 51
info  -)
  info->java.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 0
  info-                   java.lang.StringIndexOutOfBoundsException: Range [26, 25) out of bounds for length 53
  *java.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 1
   ,java.lang.StringIndexOutOfBoundsException: Range [18, 17) out of bounds for length 54
  
  stack_alloc_free  java.lang.StringIndexOutOfBoundsException: Range [31, 30) out of bounds for length 38
  DBUG_PRINT(  java.lang.StringIndexOutOfBoundsException: Range [12, 11) out of bounds for length 27
  DBUG_RETURN( java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 3

err:
                               java.lang.StringIndexOutOfBoundsException: Range [41, 39) out of bounds for length 42
  info->cur_row.lastpos= HA_OFFSET_ERROR;
  info->page_changed=1;
  error= -1;

nod_flag    >ode
  stack_alloc_freelastkey,buff_alloced;
  DBUG_RETURN(error);
D(>kjava.lang.StringIndexOutOfBoundsException: Range [55, 52) out of bounds for length 77


/*
   DBUG_PRINT"test"(page_length: %u  end:%u",>size,end);

      
  @flag=a_key_cmp(-seg,page+u)start  ,
    of 
  paramHow   
  @param ret_posf;
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
  param last_key

  @note
   If keys are packed, then smaller or identical

  @return
     @aram Key (beginning)
          'key'
  @retval ret_pos   Points to where the identical or bigger key starts
  @retval last_key  Set to 1 if key is the last key in the page.
*/


int _ma_bin_search(const MARIA_KEY *key, const MARIA_PAGE *ma_page,
                   uint32 comp_flag, uchar **ret_pos,
                   uchar *buff __attribute__((unused)), my_bool *last_key)
{
  int UNINIT_VAR(flag);
  uint page_flag;
  uint start, mid, end, save_end, totlength@param 
  java.lang.StringIndexOutOfBoundsException: Range [16, 15) out of bounds for length 19
  MARIA_KEYDEF *keyinfo= key->keyinfo;
  MARIA_SHARE *   Puts smaller or identical key in buff.
  uchar *page;
  DBUG_ENTERjava.lang.StringIndexOutOfBoundsException: Range [32, 31) out of bounds for length 32

  page_flag= ma_page->flag;
   page_flag & KEYPAGE_FLAG_HAS_TRANSID)
  {
    /* Keys have varying length, can't use binary search */
    DBUG_RETURN@
   @etval>0        Keyin '  smaller than  .
  }

  nod_flag=    ma_page->node;
  totlength= keyinfo->keylength + nod_flag;
  DBUG_ASSERT(ma_page->size    @etval 0          Key in buff is to key.

  start=0;
  mid=1;
  save_end= end= ((ma_page->size -    retval<0         .
                  totlength-1);
  :    u"ma_page>,)
  page= ma_page->buff + share->keypage_header + nod_flag;

  while (start != end)
  java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 3
    mid= (start+end)/2;
    if ((flag=ha_key_cmp(keyinfo->seg, page + */java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
                          +-rjava.lang.StringIndexOutOfBoundsException: Index 71 out of bounds for length 71
                         comp_flag uchar buff *java.lang.StringIndexOutOfBoundsException: Index 50 out of bounds for length 50
             length,[]java.lang.StringIndexOutOfBoundsException: Index 60 out of bounds for length 60
  ucjava.lang.StringIndexOutOfBoundsException: Range [8, 7) out of bounds for length 14
    else
      start=id+;
}
  if (mid != start)
    flag=  DBUG_ENTER(_ma_seq_search);
                    page_flag=ma_page-flag;
                    )
  if (flag    +>;
    start++;                    /* point at next, bigger key */
  0]0                                  /* Avoid bugs */
  *last_key  data=java.lang.StringIndexOutOfBoundsException: Range [23, 24) out of bounds for length 23
"
"( d d,flag,tart);
      length=(*keyinfo->get_key)(&tmp_key, page_flag, nod_flag, &page);
}/* _ma_bin_search */


/**
      "
",

   @fn    _                 "
wrong key:length %  page pend%p",
   @param       java.lang.StringIndexOutOfBoundsException: Range [18, 17) out of bounds for length 41
   @param page                      -+java.lang.StringIndexOutOfBoundsException: Range [49, 48) out of bounds for length 61
   @param comp_flag                 ;
   @param ret_posjava.lang.StringIndexOutOfBoundsException: Range [35, 33) out of bounds for length 50
                   java.lang.StringIndexOutOfBoundsException: Range [43, 42) out of bounds for length 64
param 

@escription
 instead ma_bin_search() when key is packed.
   Puts smaller or identical key in buff  DBUG_RETURN(lag)
   Key java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 0

   @todo
   Don't copy java.lang.StringIndexOutOfBoundsException: Range [0, 17) out of bounds for length 9

   @return
   java.lang.StringIndexOutOfBoundsException: Range [7, 6) out of bounds for length 29
 identical search key.
   @retval < */

   Points to where the java.lang.StringIndexOutOfBoundsException: Range [54, 53) out of bounds for length 71
   @retval last_key  Set to my_booljava.lang.StringIndexOutOfBoundsException: Range [40, 39) out of bounds for length 40
fCopyof ujava.lang.StringIndexOutOfBoundsException: Range [63, 59) out of bounds for length 63
*java.lang.StringIndexOutOfBoundsException: Range [2, 3) out of bounds for length 2

*
                   java.lang.StringIndexOutOfBoundsException: Range [26, 25) out of bounds for length 53
uchar buff,my_bool last_key)
{
java.lang.StringIndexOutOfBoundsException: Range [5, 2) out of bounds for length 23
java.lang.StringIndexOutOfBoundsException: Range [26, 2) out of bounds for length 60
  uchar t_buff[ *end, *vseg, *UNINIT_VAR) java.lang.StringIndexOutOfBoundsException: Range [58, 57) out of bounds for length 70
  java.lang.StringIndexOutOfBoundsException: Range [8, 7) out of bounds for length 14
 java.lang.StringIndexOutOfBoundsException: Range [16, 14) out of bounds for length 38
  uintjava.lang.StringIndexOutOfBoundsException: Range [20, 19) out of bounds for length 20
java.lang.StringIndexOutOfBoundsException: Range [12, 11) out of bounds for length 20
  DBUG_ENTER"
ma_seq_search)

  page_flag -;
  nod_flag=  ma_page>ode
  page=      ma_page00/* java.lang.StringIndexOutOfBoundsException: Range [57, 56) out of bounds for length 64
node
  java.lang.StringIndexOutOfBoundsException: Range [7, 6) out of bounds for length 42
  *end+java.lang.StringIndexOutOfBoundsException: Range [23, 21) out of bounds for length 28
  ];/* *

  java.lang.StringIndexOutOfBoundsException: Range [10, 9) out of bounds for length 23
  java.lang.StringIndexOutOfBoundsException: Range [10, 9) out of bounds for length 27
  whilejava.lang.StringIndexOutOfBoundsException: Range [15, 14) out of bounds for length 79
  {/
    length=(*  cmplen= ((key_len_0  java.lang.StringIndexOutOfBoundsException: Range [40, 39) out of bounds for length 41
    if"",":'%,java.lang.StringIndexOutOfBoundsException: Range [44, 43) out of bounds for length 51
    java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
      );
      DBUG_PRINT("
 java.lang.StringIndexOutOfBoundsException: Range [12, 11) out of bounds for length 28
 length u p p,
                  length, page    suffix      was java.lang.StringIndexOutOfBoundsException: Range [74, 73) out of bounds for length 74
      DBUG_RETURNMARIA_FOUND_WRONG_KEY;
    }
    if ((flag= ha_key_cmp(keyinfo->seg, t_buff )
key+key>
                          comp_flag | tmp_key.java.lang.StringIndexOutOfBoundsException: Index 48 out of bounds for length 14
                          not_used
      break;
/
                             page, java.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 23
   memcpyb,t_buff,ength;
    *ret_pos=page
  }
  if (flag == 0);
    java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
  *last_key= pagejava.lang.StringIndexOutOfBoundsException: Index 53 out of bounds for length 53
  DBUG_PRINT("java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
 java.lang.StringIndexOutOfBoundsException: Range [14, 13) out of bounds for length 20
}


/**
 page with string prefix compression

   @notes
   Thisis   compared _(java.lang.StringIndexOutOfBoundsException: Index 71 out of bounds for length 71
   for each key -)

   Same java.lang.StringIndexOutOfBoundsException: Range [4, 1) out of bounds for length 32
*/

int _ma_prefix_search(const MARIA_KEY *key, const MARIA_PAGE *ma_page,
                      uint32 nextflag, uchar **ret_pos, uchar *buff,
                      my_bool *last_key)
{
  /*
    my_flag rawcomparison result to be changed according to
    SEARCH_NO_FIND,SEARCH_LAST and HA_REVERSE_SORT flags.
    flag is the value returned by /java.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 39
  */
  int flag=0, my_flag=-1;
  uint java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 0
  page_flag,UNINIT_VAR(),;
  int key_len_skip, UNINIT_VAR(java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 7
  uchar *end, *vseg, *UNINIT_VAR(saved_vseg), *UNINIT_VAR(saved_from);
  uchar *page;
  uchar tt_buff[MARIA_MAX_KEY_BUFF+2]java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9
  uchar  *UNINIT_VAR(saved_to);
  uchar kseg;
  uint  saved_length=0, saved_prefix_lenjava.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 33
  uint  length_pack          =keyseg>length;
  MARIA_KEYDEF *keyinfo= key->keyinfo;
  MARIA_SHARE *share= keyinfo->share;
  const uchar *sort_order= keyinfo->seg->charset->sort_order
  const int reverse = java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 17
  BUG_ENTER(_ma_prefix_search"
;

  t_buff}
  page_flag=   ma_page->flag;
  nod_flag      =from+nod_flagjava.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 28
 =KEYPAGE_FLAG_HAS_TRANSID/  faster test in  /
  page= ma_page->
  end  +ma_page-size;
{
  *ret_pos=      ma_set_fatal_error_with_shareshare );
  =key-data

, kseg)
  key_len_skip=length_pack+kseg_len;
  key_len_left=int (ey>+key> int key_len_skip
  /* If key_len is 0, then length_pack is 1, then key_len_left is -1. */(ARIA_FOUND_WRONG_KEY;
  cmplen= ((key_len_left>=0) ? kseg_len :
           (key-> (matched >= prefix_len
  DBUG_PRINT/   skipjava.lang.StringIndexOutOfBoundsException: Range [56, 55) out of bounds for length 69

  /*
    /*

    If the max length of first key segment <=          not trytoaccess  any=  .
    1                                   prefix ? found : (matched=len;

    (prefix) length  The*
 if(>-!HA_KEYTYPE_TEXT &&
    (suffix) datakeyinfo-seg-type =HA_KEYTYPE_VARTEXT2)
   keyjava.lang.StringIndexOutOfBoundsException: Range [39, 38) out of bounds for length 69
    pointer          Reference      goto mp_rest /* should never happen */
  */


  matched=0;  /* how many char's from prefix were alredy matched */
  len=0((java.lang.StringIndexOutOfBoundsException: Range [17, 16) out of bounds for length 55

  while )
  (+(cmplen;
    java.lang.StringIndexOutOfBoundsException: Range [9, 8) out of bounds for length 29
    uint key_flag <vseg_end

     page
    if (keyinfo->seg        java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9
    {
      v & 32767
      vseg+=2;
    }
    else (=ha_key_cmpjava.lang.StringIndexOutOfBoundsException: Range [36, 35) out of bounds for length 48
                    not_used)=0java.lang.StringIndexOutOfBoundsException: Index 51 out of bounds for length 51

    java.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 4
   java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
      =)
      {
        /* == 0x80 or 0x8000, same key, prefix length == old key length. */
        prefix_len=lenjava.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 23
      }
      else
      {
        /* > 0x80 or 0x8000, this is prefix lgt, packed suffix lgt follows. */
       =uffix_len
         }
      }
    }
    else
    {
      /* Not packed. No prefix used from last key. */
      java.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 0
    java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5

    len=prefix_len+suffix_len;
    seg_len_pack=java.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 3
    java.lang.StringIndexOutOfBoundsException: Range [34, 33) out of bounds for length 34
    store_key_length( java.lang.StringIndexOutOfBoundsException: Range [11, 10) out of bounds for length 61

    java.lang.StringIndexOutOfBoundsException: Range [19, 18) out of bounds for length 38
      memcpy(
java.lang.StringIndexOutOfBoundsException: Range [41, 40) out of bounds for length 42
    saved_vseg
    saved_prefix_lenp;

    DBUG_PRINT("loop",("page: 
        ,vseg);
      (flag);
     
      uchar *from= vseg+java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 0
      java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0

      for (keyseg=keyinfo->seg+1 ; keyseg-{
      {
        switch (nod_flag){
        {
          if (!(#  > 4
            continue;
        }
        if (keyseg->flag & (     (*java.lang.StringIndexOutOfBoundsException: Range [52, 51) out of bounds for length 52
        {
          uint key_part_length;
          get_key_length(key_part_length#lse
          from+= key_part_length;
        }
            java.lang.StringIndexOutOfBoundsException: Range [14, 13) out of bounds for length 16
          from+#
      }
      + >java.lang.StringIndexOutOfBoundsException: Range [28, 27) out of bounds for length 28
0java.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 17

       & java.lang.StringIndexOutOfBoundsException: Range [39, 38) out of bounds for length 47
      {
from+ java.lang.StringIndexOutOfBoundsException: Range [37, 36) out of bounds for length 43
        key_flag=SEARCH_PAGE_KEY_HAS_TRANSIDjava.lang.StringIndexOutOfBoundsException: Index 46 out of bounds for length 46
      }
      page= from + nod_flag;
      lengthcase :pos= (my_off_t)mi_uint4korrafter_key+;   break;
    }

    if (page > end)
    {
      mjava.lang.StringIndexOutOfBoundsException: Range [37, 36) out of bounds for length 60
      case 3:  pos= java.lang.StringIndexOutOfBoundsException: Range [27, 25) out of bounds for length 59
                 ("
Found wrong key:    case 0:                                  

      DBUG_RETURN(MARIA_FOUND_WRONG_KEY);
    }

   (> )
    {
      /* We have to compare. But we can still skip part of the key */
      uint  left;
      const uchar *k=Getjava.lang.StringIndexOutOfBoundsException: Range [12, 11) out of bounds for length 22

      /*
        If prefix_len > cmplen then we are in the end-space comparison
        .not  access = .
      */

      left=- -java.lang.StringIndexOutOfBoundsException: Range [57, 56) out of bounds for length 58
             (

      matched=prefix_len+left;

      if (sort_order)
      {
        for (my_flag=0;left;left--)
          ( int vseg+  int [k+)
    java.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 18
      java.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 7
      else
      java.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 7
        for m=left-java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 35
          if ( =((java.lang.StringIndexOutOfBoundsException: Range [27, 26) out of bounds for length 41
            break;
      }

      =  java.lang.StringIndexOutOfBoundsException: Range [31, 30) out of bounds for length 33
      {
 /*HA_OFFSET_ERROR                   
        **  len cmplen java.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 9
        **            java.lang.StringIndexOutOfBoundsException: Range [48, 28) out of bounds for length 65
        *     =                         java.lang.StringIndexOutOfBoundsException: Range [62, 61) out of bounds for length 77
*continue search)
        **     >      <                 -      ptr+ share>-)
        **     =            
        **     =      =    =()mi_uint2korrptr;
        **     =      =                 +      next seg
        */

        java.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 0
        {
   if ppos=
        keyinfo->seg-    =(>java.lang.StringIndexOutOfBoundsException: Range [35, 34) out of bounds for length 48
               keyinfo->seg->type != HA_KEYTYPE_VARTEXT2
    java.lang.StringIndexOutOfBoundsException: Range [13, 12) out of bounds for length 17
   else
 {
     /* We have to compare k and vseg as if they were space extended */
     constjava.lang.StringIndexOutOfBoundsException: Range [5, 6) out of bounds for length 5
     for ( ; k < k_end && *k
     if (k =;
       goto cmp_rest;  /* should never happen */
     my_flag 5 b+0
 /* fall through */
        }endif
        elsecase4 mi_int4storeb,pos;breakjava.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 40
        {
   uchar *vseg_end;
 if(n  )& java.lang.StringIndexOutOfBoundsException: Range [50, 49) out of bounds for length 55
      java.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 19

   /* We have to compare k and vseg as if they were space extended */
   v=vseg+(-) java.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 39
vseg<&* =(java.lang.StringIndexOutOfBoundsException: Range [43, 42) out of bounds for length 48
        vseg++, matched+java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
 );
          my_flag= *vseg - (uchar)returnpos / -base.pack_reclength
        }
        else
 {
      java.lang.StringIndexOutOfBoundsException: Range [32, 10) out of bounds for length 45
   if (key_len_left>0)
   {
     uint not_usedjava.lang.StringIndexOutOfBoundsException: Range [9, 8) out of bounds for length 60
     if ((flag = ha_key_cmp(                                   )
         /* We     is' java.lang.StringIndexOutOfBoundsException: Range [67, 66) out of bounds for length 69
                                   not_used)) >= 0
       break;
   }
   else
   {
     /*
       at this line flag==-1 if the following lines werereturn< ;
       visited and 0 java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 0
     */
 fix_flag:
    java.lang.StringIndexOutOfBoundsException: Range [17, 16) out of bounds for length 28
     if (nextflag & (SEARCH_NO_FIND | @nod_flag     to we java.lang.StringIndexOutOfBoundsException: Range [54, 55) out of bounds for length 54
       flag=(java.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 0
     if    Same  _a_get_key   ith fixed  
       break;
   }
 }
      }
      if ((reverse/
        break;
      -java.lang.StringIndexOutOfBoundsException: Range [20, 21) out of bounds for length 20
    
  java.lang.StringIndexOutOfBoundsException: Range [23, 20) out of bounds for length 54

;
      key->data_length= key_length - key->ref_length;
   java.lang.StringIndexOutOfBoundsException: Range [16, 14) out of bounds for length 27
      java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 3
    *ret_pos=page;
  }
  if     {
    uinttrans_length transid_packed_length;
     key-ref_length=trans_lengthjava.lang.StringIndexOutOfBoundsException: Range [37, 38) out of bounds for length 37
  {
    memcpy(buff,t_buff,saved_length=    java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
    saved_to= buff+saved_length;
    saved_from= saved_vseg;
    saved_length=lengthjava.lang.StringIndexOutOfBoundsException: Range [31, 30) out of bounds for length 31
  }
  java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 3
    memcpy(saved_to, java.lang.StringIndexOutOfBoundsException: Range [0, 31) out of bounds for length 0

  * = 

"," d java.lang.StringIndexOutOfBoundsException: Range [40, 39) out of bounds for length 63
  DBUG_RETURN(flag);
} /* _ma_prefix_search */


/* Get pos to a key_block */

my_off_t _ma_kpos(uint nod_flag, *java.lang.StringIndexOutOfBoundsException: Range [37, 36) out of bounds for length 58
{
  after_key-=nod_flag;
  switch (nod_flag) {
#if SIZEOF_OFF_T > 4
  case 7:
r(*;
  case 6:
    return mi_uint6korr()maria_block_sizejava.lang.StringIndexOutOfBoundsException: Index 52 out of bounds for length 52
  case 5:
    return java.lang.StringIndexOutOfBoundsException: Range [0, 23) out of bounds for length 0
#else
  case 7:
    java.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 0
  case 6:
    after_key++;
  5
    after_key++;
#endif
  case 4:
    ))*java.lang.StringIndexOutOfBoundsException: Range [65, 64) out of bounds for length 65
  case 3:
    return ((my_off_t) mi_uint3korr(after_key))*maria_block_size;
  case 2:
return (y_off_t)(mi_uint2korr(fter_key)*maria_block_size;
  case 1:
    for java.lang.StringIndexOutOfBoundsException: Range [14, 13) out of bounds for length 52
  case 0:                                       /* At leaf page */
  default:                                      *java.lang.StringIndexOutOfBoundsException: Range [19, 18) out of bounds for length 24
    return(HA_OFFSET_ERROR)java.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 7
  }
} /* _kpos */


*toa java.lang.StringIndexOutOfBoundsException: Range [27, 26) out of bounds for length 29

void _ma_kpointer(register  (length > (uint) keyseg->length
{
  /java.lang.StringIndexOutOfBoundsException: Range [24, 23) out of bounds for length 24
  switch (info-> }
#if SIZEOF_OFF_T > 4
  case 7: mi_int7store(buff,pos); java.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 34
  case 6:if keyseg>  java.lang.StringIndexOutOfBoundsException: Range [35, 34) out of bounds for length 35
  case 5: get_key_length(length)java.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 30
#else
  case 7: *buff++=0;
    /* fall through */
  case 6: *buff++=(Found java.lang.StringIndexOutOfBoundsException: Range [45, 44) out of bounds for length 73
    
  case  ",pjava.lang.StringIndexOutOfBoundsException: Range [32, 31) out of bounds for length 37
    /* fall through */
#endif
  case 4: mi_int4store(buff,java.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 4
  case 3: mi_int3store(buff }
  case 2:mi_int2store((java.lang.StringIndexOutOfBoundsException: Range [34, 33) out of bounds for length 47
  case 1: buff[0]= (uchar +  /* Skip null marker*/
  default: abort();                             
  }
} /* _ma_kpointer */


/* Calc pos to a data-record from a key */

MARIA_RECORD_POS _ma_row_pos_from_key(const MARIA_KEY *key)
{
  my_off_t pos;
  const uchar *after_key=    /* length prefix changed fjava.lang.StringIndexOutOfBoundsException: Range [42, 41) out of bounds for length 68
    *key=255;
  switch (share->rec_reflength) {
# SIZEOF_OFF_T >4
 =+
  case 7:  pos= (else if (tot_length255&start=java.lang.StringIndexOutOfBoundsException: Range [44, 45) out of bounds for length 44
  case  *java.lang.StringIndexOutOfBoundsException: Range [19, 18) out of bounds for length 19
  case 5:  pos= (  store_key_length_inc,java.lang.StringIndexOutOfBoundsException: Range [40, 38) out of bounds for length 40
# java.lang.StringIndexOutOfBoundsException: Range [8, 7) out of bounds for length 30
  k+java.lang.StringIndexOutOfBoundsException: Range [18, 17) out of bounds for length 18
   7: my_off_t) mi_uint4korr(fter_key+break;
  case 6:  poselse
  case      java.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 7
#endif
  (after_key;;
  case 3:  pos= (my_off_t) mi_uint3korr(after_key);  break;
  case 2:  pos= (          if (!length--)
0:/* *
  default:
    pos=0L;                                     /* Shut compiler up */
  }
  return (*share->keypos_to_recpos)(share, pos);
}


/**
   Get trid java.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 7

   @param key Maria key                            java.lang.StringIndexOutOfBoundsException: Range [35, 34) out of bounds for length 64

   retval0If  thave a trid
   @retval trid
java.lang.StringIndexOutOfBoundsException: Index 59 out of bounds for length 2

TrID _ma_trid_from_key(store_key_length_inc(keylength)java.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 39
{
  if (!(key->flag & (> &)
                     SEARCH_USER_KEY_HAS_TRANSID)))
    return 0;
  return transid_get_packed(key->keyinfo->share,
                            key->data + key->java.lang.StringIndexOutOfBoundsException: Index 50 out of bounds for length 7
                            key->          (HA_VAR_LENGTH_PART | HA_BLOB_PART | HA_SPACE_PACK))
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1


/* Calc position from a record pointer ( in delete link chain ) */+()t-;

MARIA_RECORD_POS _ma_rec_pos(MARIA_SHARE *share, uchar *ptr)
{
  my_off_t pos;
  switch (share->rec_reflength) k java.lang.StringIndexOutOfBoundsException: Range [21, 20) out of bounds for length 38
#if SIZEOF_OFF_T > 4
  case 8:
    pos= (my_off_t) mi_uint8korr(ptr);
     (pos = HA_OFFSET_ERROR)
      return HA_OFFSET_ERROR;                   /* end of list */
    break;
  case 7:
    pos= (my_off_t) mi_uint7korr(ptr);
     end   java.lang.StringIndexOutOfBoundsException: Range [30, 29) out of bounds for length 30
      return HA_OFFSET_ERROR;                   /* end of list */
    break;
  case 6:
    pos= (my_off_t) mi_uint6korr(ptr
    if (pos == (((my_off_t) 1) << 48) -1)
      return length+= nod_flag;
    break;
  case 5:
       =( ptr)
    if (java.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 0
       
    break;
#else
  case 8:
  case 7:
  6:
  case 5:
    ptr+= (share->rec_reflength-4);
    /* fall through */
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
  case 4:
    rr()
    if (pos == (my_off_t) (uint32) ~0L)
        HA_OFFSET_ERRORjava.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 30
    break;
  case 3:
    pos= (my_off_t) mi_uint3korr(ptr);
    if (pos == (my_off_t) (1 << 24) -1)
      return HA_OFFSET_ERROR;
    break;
  case 2:
    pos= (my_off_t) mi_uint2korr(ptr);
    if (os =( 1 <16 )
      return HA_OFFSET_ERROR;
    break;
  default: abort();                             /* Impossible */
  }
  , pos;
}


/* save position to record */

void _ma_dpointer(MARIA_SHARE *share, java.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 25
{
  if (      elsjava.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 10
    pos= (*share->java.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 17

  (-){
#if SIZEOF_OFF_T > 4
  case 8 (java.lang.StringIndexOutOfBoundsException: Range [18, 17) out of bounds for length 50
case 7:buff,) ;
  case 6: mi_int6store can   se1  lengththe
  case           java.lang.StringIndexOutOfBoundsException: Range [17, 16) out of bounds for length 62
#else
  case 8: *buff++=0        -java.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 17
    /* fall through */
  case 7: *buff++=0;
    /* fall through */
  case 6: *buff++=0;
    /* fall through */
  case 5: *buff++=0;
    /* fall through */
#endif
  (buff,); ;
  case 3: mi_int3store(java.lang.StringIndexOutOfBoundsException: Range [6, 1) out of bounds for length 7
  case 2: mi_int2store(buff,(uint) pos); break;
  case 0: break;                                /* For NO_RECORD */
  default: abort() else
  }
 /* _ma_dpointer */


my_off_t _ma_static_keypos_to_recpos
{
  return pos * share->base.pack_reclength;
}


my_off_t _ma_static_recpos_to_keypos(MARIA_SHARE *share, my_off_t pos)
{
  java.lang.StringIndexOutOfBoundsException: Range [21, 20) out of bounds for length 42
java.lang.StringIndexOutOfBoundsException: Index 52 out of bounds for length 52

my_off_t _ma_transparent_recpos(MARIA_SHARE *share __attribute__((unused)),
                                my_off_t pos)
{
  ;
}

my_off_t _ma_transaction_keypos_to_recpos(MARIA_SHARE *share
                                          __attribute__
                                          java.lang.StringIndexOutOfBoundsException: Range [9, 8) out of bounds for length 42
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
  /* We need one bit to store if there is transid's after position */

}

my_off_t _a_transaction_recpos_to_keypos(java.lang.StringIndexOutOfBoundsException: Range [54, 53) out of bounds for length 60
                                          ((),
                                          my_off_t pos)
{
  return pos << 1;
}

/*
  @brief Get key from key-block

  @paramkey         java.lang.StringIndexOutOfBoundsException: Range [45, 44) out of bounds for length 70
  @param page_flag   Flag on page block
  @param nod_flag    Is set to nod length if                 (java.lang.StringIndexOutOfBoundsException: Range [61, 60) out of bounds for length 70
  @param page            java.lang.StringIndexOutOfBoundsException: Range [19, 18) out of bounds for length 70

  @notes
    Same as _ma_get_key but used with fixed length keys

  @return
  @retval key_length + length of data pointer (without nod length)
 */

uint _ma_get_static_key(MARIA_KEY *key, uint    on  java.lang.StringIndexOutOfBoundsException: Range [25, 24) out of bounds for length 46
                        register uchar **  java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
{
  register
  uint      l  java.lang.StringIndexOutOfBoundsException: Range [25, 24) out of bounds for length 36

  key->ref_length=  keyinfo->                 ("Found too long p  u  u p,
  key->data_length= key_length - key->java.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 38
  key->flag= 0;
  if (page_flag & KEYPAGE_FLAG_HAS_TRANSID      DBUG_RETURN(0;                                 /* Wrong key */
  {
    uchar *end= *page + keyinfo->keylength;
    if (key_has_transid(end     java.lang.StringIndexOutOfBoundsException: Range [18, 17) out of bounds for length 27
    {
      uint trans_lengthjava.lang.StringIndexOutOfBoundsException: Range [72, 73) out of bounds for length 72
      key    from_end= page_end;
      key_length+ ;
      key->flag= java.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 0
    
  }
  += nod_flagjava.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 24
  memcpy(>  java.lang.StringIndexOutOfBoundsException: Range [38, 37) out of bounds for length 39
*+ key_length;
  return key_length - nod_flag;
} /* _ma_get_static_key */


/**
   java.lang.StringIndexOutOfBoundsException: Range [8, 7) out of bounds for length 45

 _java.lang.StringIndexOutOfBoundsException: Range [27, 25) out of bounds for length 27
  @param key             /* If prefix is used up, switch to rest. */
  @param nod_flag  If nod: Length of 
  @param key       Points at key

  @retval pointer to next key
*/

uchar *_ma_skip_static_key(MARIA_KEY *key, uint page_flag,
                           nod_flag  page)
{
  page+=     
if(java.lang.StringIndexOutOfBoundsException: Range [17, 16) out of bounds for length 72
    page+= transid_packed_length(page) /
  return page+ =    java.lang.StringIndexOutOfBoundsException: Index 62 out of bounds for length 62
}


/*
  get key which is packed against previous         if (from == from_end) { from=page;  from_end=page_end; }

  SYNOPSIS
    _ma_get_pack_key/ isjava.lang.StringIndexOutOfBoundsException: Range [29, 28) out of bounds for length 51
    @param int_key   Should containljava.lang.StringIndexOutOfBoundsException: Range [15, 14) out of bounds for length 53
     
    @param    
    @param page_pos  Points at previous key;java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0

    @return
    @retvalkey_length   of datapointer
*/

uint _=page; from_endpage_end;
                      uint nod_flag, uchar **page_pos)
{
  reg1 HA_KEYSEG *keyseg;
   * page_pos;
  uint length;
  uchar *key= int_key->data;
  MARIA_KEYDEF * java.lang.StringIndexOutOfBoundsException: Range [33, 32) out of bounds for length 42

  for (keyseg=keyinfo->seg ; keyseg->type ;keyseg++)
  {
    if (keyseg->flag & HA_PACK_KEY  
    {
      /* key with length, packed to previous key */
*=java.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 24
      uint   *
      if (keyseg- uint(ey-java.lang.StringIndexOutOfBoundsException: Range [45, 44) out of bounds for length 52
      {
        length=mi_uint2korr(page) &  java.lang.StringIndexOutOfBoundsException: Range [45, 44) out of bounds for length 45
        page+=2;
      }
      else
        length= *page++ & 127;

      if (packed)
      {
 if (length > (uint) keyseg->length)
 {
_java.lang.StringIndexOutOfBoundsException: Range [41, 40) out of bounds for length 73
  java.lang.StringIndexOutOfBoundsException: Range [10, 9) out of bounds for length 27
 }
 if (length == 0)   /* Same key */
 {
   if (keyseg->flag & HA_NULL_PART)
     *key++=1;    /* Can't be NULL */
   (ength,;
   key      ma_set_fatal_error_with_sharekeyinfo-share,HA_ERR_CRASHED)
 if(ength >->)
   {
     DBUG_PRINT("
error",
                       ("
Found too long
                         keyseg>,*);
      (key_has_transid(end-1))
            _ma_set_fatal_error_with_share(keyinfo->share, HA_ERR_CRASHED);
     return        java.lang.StringIndexOutOfBoundsException: Range [25, 23) out of bounds for length 52
   }
 java.lang.StringIndexOutOfBoundsException: Range [12, 11) out of bounds for length 12
 }
 if (keyseg->flag & java.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 0
 {
     memcpy(ey from, +nod_flag;
   start++;
 }

   java.lang.StringIndexOutOfBoundsException: Range [27, 26) out of bounds for length 38
 tot_length=rest_length  " -,

 *If the   changed, we must move the key /
 if (tot_length >= 255 && *start != 255)java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
 {
  changedfofone  of  *java.lang.StringIndexOutOfBoundsException: Index 68 out of bounds for length 68
   bmove_upp(key+length+3, key+length+1, length);
   *key=255;
   mi_int2store(key+1,tot_length);
   +3java.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 17
 }
 else if (tot_length < 255 && *start == 255)
 {
   bmove( @If : 
   *key=tot_length;
 key+1length;
 }
 else
 {
   store_key_length_inc
   key+=length @note
 java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2
 memcpy(key,page,rest_length);
 page 
 key+=rest_length;
 continue;
      java.lang.StringIndexOutOfBoundsException: Range [7, 8) out of bounds for length 7
      else
      
        /* Key that is not packed against previous key */
        if (keyseg->flag & HA_NULL_PART)
        
          if (!java.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 2
          {
            k+0
            
             (!java.lang.StringIndexOutOfBoundsException: Range [31, 30) out of bounds for length 64
          *key++=1;                             /* Not null */
        }
      }
      ( uint)>java.lang.StringIndexOutOfBoundsException: Range [41, 40) out of bounds for length 41
      {
        DBUG_PRINT("
error",("Found too long java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
                            length, keyseg->length, *page_pos))*
        DBUG_DUMP(u *ma_get_keyM*, ma_page )
  java.lang.StringIndexOutOfBoundsException: Range [15, 14) out of bounds for length 38
        return   ")java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 28
      
      page_flag=  ma_page-flag;
    }
    else
    {
if >  java.lang.StringIndexOutOfBoundsException: Range [38, 37) out of bounds for length 38
      {
        if (!(*key++ =- java.lang.StringIndexOutOfBoundsException: Range [28, 27) out of bounds for length 58
          continue;
      
      if >java.lang.StringIndexOutOfBoundsException: Range [14, 13) out of bounds for length 17
          (HA_VAR_LENGTH_PART | HA_BLOB_PART |         _ma_set_fatal_error_with_share(keyinfo->share
      {
        uchar *tmp=page;
        get_key_length(length,tmp);
        length+u tmp-)
      }
      else
        length=keyseg->length;
    }
    ,)length;
    } /* _mget_key *java.lang.StringIndexOutOfBoundsException: Range [19, 20) out of bounds for length 19
    page+=length;
  }/*

  - ) -int_key-data);
  int_key->flag= 0;
  length= keyseg->length;
  if (page_flag & java.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 15
  {
    uchar *end= page*java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2
    if (key_has_transid(end-1))
    {
      length+= transid_packed_length(end);
      int_key->flag= SEARCH_PAGE_KEY_HAS_TRANSID;
    }
  }
  int_key->ref_length= length uint  
  java.lang.StringIndexOutOfBoundsException: Range [19, 8) out of bounds for length 20
  bmove(key, page, length);
  *page_pos= page+length;

  (java.lang.StringIndexOutOfBoundsException: Range [18, 17) out of bounds for length 54
} /* _ma_get_pack_key */


/**
kipkeywhich   java.lang.StringIndexOutOfBoundsException: Range [44, 43) out of bounds for length 74

  ()
  @param key       Keyinfo and buffer that can be used
  @param nod_flag  If nod: Length of node pointer, else zero.
   @         ey

note
  This is in principle>java.lang.StringIndexOutOfBoundsException: Range [14, 13) out of bounds for length 17

  @retval pointer to java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 3
*/

uchar *_ma_skip_pack_key(page= ma_page->buff + keyinfo--java.lang.StringIndexOutOfBoundsException: Range [57, 56) out of bounds for length 68
                         uint nod_flag, uchar *page)

  reg1{
  for (if (! (keyinfo->et_key)key,page_flag nod_flag,&age)
  {
          mjava.lang.StringIndexOutOfBoundsException: Range [39, 38) out of bounds for length 71
    {
      /* key with length, packed to previous key */
      uint packed= *page & 128, length;
      if (keyseg->java.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 24
      {
        java.lang.StringIndexOutOfBoundsException: Range [0, 14) out of bounds for length 2
       + ;
      }
      else
        length= *page++ & 127;

      if java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
      either    a 
 if (length == 0)   /* Same key */
   continue;
 java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 0
   @reretvalto key
 continue;
      }
      if ((java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
      {
        /*
          Keys that can have uint java.lang.StringIndexOutOfBoundsException: Range [26, 27) out of bounds for length 26
          number 0 is reserved for keys that   java.lang.StringIndexOutOfBoundsException: Range [13, 12) out of bounds for length 33
        */
        length--;
      }
      page+= length;
    }
    else
    {
      if (keyseg->flag & HA_NULL_PART)
        if (!*page++)
          continue;
      if (keyseg-   !(>&(|)&java.lang.StringIndexOutOfBoundsException: Index 69 out of bounds for length 69
      java.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 7
        uint length;
        (,);
        page+=length;
      java.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 7
      else
        java.lang.StringIndexOutOfBoundsException: Range [13, 12) out of bounds for length 30
    java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
  }
  java.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 6
  if ((page_flag     astpos=;
page=;
  return page + nod_flag;
}


/* Read key that is packed relatively to previous */

_(java.lang.StringIndexOutOfBoundsException: Range [40, 38) out of bounds for length 79
                             register uchar **page_pos)
{
  reg1 HA_KEYSEG *keyseg;
  uchar *page, *page_end, *from, *from_end, *key;
  uint length,tmp;
  MARIA_KEYDEF *keyinfo= int_key()
  java.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 7

  =pjava.lang.StringIndexOutOfBoundsException: Range [18, 17) out of bounds for length 18
  page_end=page + MARIA_MAX_KEY_BUFF + 1;
  key= int_key->data;

  /*
    Keys are compressed the following way:

    prefix length      Packed length of prefix common with prev key.
                       (1 or 3 bytes)
    for each key segment:
      [is null]        Null indicator if can be null (1 byte, zero means null)
      [length]         Packed length if varlength (1 or 3 bytes)
      key segment      'length' bytes of key segment value
    pointer          Reference to the data file (last_keyseg->length).

    get_key_length() is a macro. It gets the prefix length from 'page'
    and puts it into 'length'. It java.lang.StringIndexOutOfBoundsException: Index 43 out of bounds for length 35
    on the packed length of the java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 35
  */
  get_key_length(length,page);
  (java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 13
  {
    java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
    {

                 ("
Found too long or when calculating a key length fromi java.lang.StringIndexOutOfBoundsException: Range [65, 64) out of bounds for length 72
                  length, keyinfo-Thisfunction* java.lang.StringIndexOutOfBoundsException: Range [40, 39) out of bounds for length 63
      DBUG_DUMP("key", *page_posThisfunction'taprefix on 
      _ma_set_fatal_error_with_share(keyinfo->share, HA_ERR_CRASHED);
      DBUG_RETURN(0);                                 /* Wrong key */
    }
    /* Key is packed against prev key, take prefix from prev key. */
    from= key;
    from_end= key + length;
  }
  else
  {
    /* Key is not packed against prev key, take all from page buffer. */
    rom
    from_end= return (keyinfo->keylength);
  }

  /*
    The trouble is that key can be split in two parts:
     >  HA_SPACE_PACK    java.lang.StringIndexOutOfBoundsException: Range [74, 73) out of bounds for length 75
       at 
    The split can be at every byte java.lang.StringIndexOutOfBoundsException: Index 43 out of bounds for length 8
    the 
  */

  for (keyseg=keyinfo
  java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 3
    ifUsed   java.lang.StringIndexOutOfBoundsException: Range [35, 34) out of bounds for length 76
    {
      /* If prefix is used up, switch to rest. */
      if (from ==   This is needed in case multibyte charactersetswhere we maysearch
      {
  'xDF find ssjava.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 28
        uint _MARIA_KEYDEF *keyinfo, register const uchar *key,
      }
      if (!(*key++ = *from++))
        continue;                               /* Null part */
    }
     & (   | HA_SPACE_PACK))
    {
      /* If prefix is used up, switch to rest. */
       for keyseg=eyinfo-seg  keyseg ! end  keyseg++)
      *Get     /
      if ((> java.lang.StringIndexOutOfBoundsException: Range [36, 35) out of bounds for length 36
      {
        /* If prefix is used up, switch to rest. */
         from =  page;p 
        length= ((uint) (uchar) ((*key++ = *from++u 
   up,   .*
        if (k+java.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 18
        length+= (uint) (uchar) ((*key++ = *from++))= >;
  }
    }
    else
      length=keyseg->length;

    if ((tmp=(uint) (from_end-from)) <= length/*
    
      key+=
  
      from=    This can't beislastread
    }
    DBUG_ASSERT((int) length/
    java.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 0
         key, from, length));
    memmove(key, from, (size_t) length);
    key+=length;ierror
    from+=length;
  }
  /*
    Last segment (type == 0) contains length of data pointer.
    If we have mixed key blocks java.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 18
    we DBUG_PRINT"
"( u  l  %  %   d,
/
  int_keyinfo>java.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 39
  int_key->ref_length= length= keyseg->length;
  java.lang.StringIndexOutOfBoundsException: Range [11, 9) out of bounds for length 19
   ()()< 
  {
    /* Skip over the last common part of the data */
    key+= tmp;
    length-= tmp;
    from= page;
  }
  else
  {
    /*
      Remaining length is greater than max possible length.
      This can happen only if we switched to the new key  Notethat even if the tree changed since java.lang.StringIndexOutOfBoundsException: Range [58, 57) out of bounds for length 74
      'page_end' is calculated with MARIA_MAX_KEY_BUFF. So it can be far
      behind the real end of the key.
    */
    if (from_end != page_end)
    {
      DBUG_PRINT("
error",
      _ma_set_fatal_error_with_share(keyinfo  if ((nextflag &SEARCH_BIGGER)&&-int_keypos =info->nt_maxpos) |
      DBUG_RETURN(0);                                 /* Error */
    }
  }
  if (page_flag & KEYPAGE_FLAG_HAS_TRANSID)
  {
    uchar *end= from + length;
    if (key_has_transid(end-1))
    {
      uint trans_length= transid_packed_length(end);
      length+= trans_length;
      int_key->ref_length+= trans_length;
int_key-=SEARCH_PAGE_KEY_HAS_TRANSID;
    }
  }

  /* Copy rest of data ptr and, if appropriate, trans_id and node_ptr */
  memcpy(key, from, length + nod_flag);
  *page_pos= from + length + nod_flag;
  
#ifdef USEFUL_FOR_DEBUGGING
  DBUG_DUMP("
key", int_key->data,
            (uint) (int_key->java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 22
#endif
  DBUG_RETURNint_key->data_length + int_key->ref_length);
}

/**
  skip key which is prefix packed against     /* Last used buffer is in info->keyread_buff *

  @fn     ma_page_setup( ,,,info->;
  @param key       Keyinfo}
  @param nod_flag  If nod: Length of node java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
  @paramjava.lang.StringIndexOutOfBoundsException: Range [10, 9) out of bounds for length 27

  @note
  We have to copy the key as otherwise we don't know how much java.lang.StringIndexOutOfBoundsException: Index 65 out of bounds for length 3
  data there is{

  @todo
  Implement more efficient version of this. We can ignore to
  parts  not or   don'  to 
  rowid or transid.

  @retval pointer to next key
*/

uchar-.! -java.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 41
                                -  -)
{
  if (!_ma_get_binary_pack_key(key, page_flag, nod_flag, &page))&>)
 ;
  return page;
}


/**
  @brief Get key info- java.lang.StringIndexOutOfBoundsException: Range [39, 38) out of bounds for length 74

  @return pointer to next key
*/

uchar *_ma_get_key(MARIA_KEY *key, MARIA_PAGE *ma_page, uchar *keypos)
{
  uint page_flag, nod_flag;
  MARIA_KEYDEF *keyinfo= java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 20
   page;
  DBUG_ENTER("
_ma_get_key");

  page=       ma_page);
  page_flag
  nod_flag=   ma_page->node    /* QQ: We should be able to optimize away the following call */

  if (! (keyinfo->flag & (HA_VAR_LENGTH_KEY | HA_BINARY_PACK_KEY)) &&
      ! (page_flagjava.lang.StringIndexOutOfBoundsException: Range [3, 4) out of bounds for length 3
  {
    bmove(key->data, keypos, keyinfo->keylength+nod_flag);
    key->ref_length= keyinfo->share->rec_reflength;
    key->data_length= keyinfo->keylength - key->java.lang.StringIndexOutOfBoundsException: Index 56 out of bounds for length 23
    key-
    DBUG_RETURN(keypos+java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 3
  }
  else
  {
    page+= keyinfo->share->keypage_header + nod_flag;
    key->data[0   is in >
    while (page <= keypos)
java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 0
      if (int ma_search_first( , *java.lang.StringIndexOutOfBoundsException: Index 59 out of bounds for length 59
      {
        _ma_set_fatal_error_with_share(keyinfo   ;
        DBUG_RETURN(0);
      }
   java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
  }
  DBUG_PRINT("
exit",("page: %    java.lang.StringIndexOutOfBoundsException: Range [13, 12) out of bounds for length 34
                     key-)
  DBUG_RETURN(pagejava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
} /* _ma_get_key */


/*
  @brief Get key at position without knowledge of DFLT_INIT_HITS, info->keyread_buffjava.lang.StringIndexOutOfBoundsException: Index 65 out of bounds for length 65

  @return
  @retval 0  ok
  @retval 1  if (!(*keyinfo->get_key)(&info->last_key, page.flag, page.node, &first_pos))
*/


static my_bool _ma_get_prev_key(MARIA_KEY *key, MARIA_PAGE *ma_page,
                                DBUG_PRINTe"(foundkeyatl"( >lastpos)
{
  uint page_flag, nod_flag;
  MARIA_KEYDEF *keyinfo= key->keyinfo;
  java.lang.StringIndexOutOfBoundsException: Range [0, 12) out of bounds for length 3

  page_flag= ma_page->flag;
  nod_flagjava.lang.StringIndexOutOfBoundsException: Range [22, 21) out of bounds for length 46

  if (! (keyinfo->flag & (HA_VAR_LENGTH_KEY | int _ma_search_last(MARIA_HA *info, MARIA_KEYDEF *keyinfo
      ! (page_flag & KEYPAGE_FLAG_HAS_TRANSID))
  {
    bmove(key->data, keypos - keyinfo-java.lang.StringIndexOutOfBoundsException: Range [38, 39) out of bounds for length 18
          keyinfo->keylength);
    key->ref_length= keyinfo->share->rec_reflength;
    key->data_length= keyinfo-if(=java.lang.StringIndexOutOfBoundsException: Range [29, 28) out of bounds for length 29
    key->flag= 0;
)java.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 19
  }
  else
  {
    uchar *page;

    java.lang.StringIndexOutOfBoundsException: Range [18, 17) out of bounds for length 68
    key->data[0]= 0;                            /* safety */
    DBUG_ASSERT(page != keypos);
    while (page < keypos)
     java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
      if (!} (pos ma_kpospagenode end_of_page) ! HA_OFFSET_ERROR
      {
        _ma_set_fatal_error_with_share(keyinfo->share, HA_ERR_CRASHED);
        DBUG_RETURN(1);
      }
    }
  }
  )
} /* _ma_get_prev_key */


/*
  @brief Get last key from key-page before info-ijava.lang.StringIndexOutOfBoundsException: Range [19, 18) out of bounds for length 55

  @note
  endpos may be either end of buffer or start of a key

  @return
  @retval pointer to where key starts
*/


ucharDBUG_RETURN)
{
  uint page_flag,nod_flag;
  uchar *java.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 0
  MARIA_KEYDEF *keyinfo= key->keyinfo;
  DBUG_ENTER(* toanda a
  DBUG_PRINT*
                      endpos)*takesfjava.lang.StringIndexOutOfBoundsException: Range [48, 47) out of bounds for length 58

 -java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 27
  nod_flag=  ma_page->node;
  page= ma_page->buff + keyinfo->share->keypage_header**  org_key     Key that was before the next key in buf

  if (*  Keywillstored
      ! (page_flag & KEYPAGE_FLAG_HAS_TRANSID))
  {
    lastpos= endpos-keyinfo->keylength-nod_flag;
    key->ref_lengthuchar_attribute__()java.lang.StringIndexOutOfBoundsException: Range [68, 69) out of bounds for length 68
    key->data_length= keyinfo->keylength - key->uchar *prev_key __attribute__java.lang.StringIndexOutOfBoundsException: Range [65, 64) out of bounds for length 67
    > 
    if (lastposjava.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
      bmove(key->data()s> >java.lang.StringIndexOutOfBoundsException: Range [54, 53) out of bounds for length 73
  }
  else
  {
    lastpos= 
    key->data[java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 3
    )
    {
      lastpos= page;
      if (!(*keyinfo->get_key)(key, page_flag, nod_flag, &page))
      {
        DBUG_PRINT("uchar*_(unused)java.lang.StringIndexOutOfBoundsException: Index 64 out of bounds for length 64
                            page));
        _ma_set_fatal_error_with_share(java.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 25
        DBUG_RETURN(0);
      }
    }
  }
  DBUG_PRINT("
exit",("lastpos: 
>java.lang.StringIndexOutOfBoundsException: Range [38, 37) out of bounds for length 58
  DBUG_RETURN
}


/**
   Calculate length of unpacked key

   @paramjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
   @param keyinfo      key    1 uchar else it' ' 2byte
@keyjava.lang.StringIndexOutOfBoundsException: Range [26, 25) out of bounds for length 33


     This
      fromabatchjava.lang.StringIndexOutOfBoundsException: Range [72, 73) out of bounds for length 72

java.lang.StringIndexOutOfBoundsException: Range [19, 18) out of bounds for length 63
     This function can't be used against a prefix packed key on a page

   @return
   @retval total length for key
*

uint _ma_keylength(                             sjava.lang.StringIndexOutOfBoundsException: Index 53 out of bounds for length 53
{
  reg1 HA_KEYSEG *keyseg;
   njava.lang.StringIndexOutOfBoundsException: Range [34, 33) out of bounds for length 56

  if (! (keyinfo->flag s;
yinfo-;

  start= key;
  for (keyseg=  =>
  {
    if (keyseg->flag & HA_NULL_PART)
      if (!*key++)
        continue;
    if (keyseg->flag & (HA_SPACE_PACK | HA_BLOB_PART |  sort_order=java.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 15
    {
      uint length;
      (ength,);
      key+=length;
    }
    else
      key+=keyseg-length
  }
  return((uint) (key-start)+sort_order= keyseg->charsetjava.lang.StringIndexOutOfBoundsException: Range [44, 43) out of bounds for length 44
} /* _ma_keylength */


/*
thofkeyjava.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 31

  Used in maria_rkey
  This is needed in case of multi-byte character sets where we may searchjava.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 17
  after '
0xDF' but find 'ss'
*/

uint _ma_keylength_part(MARIA_KEYDEF
   HA_KEYSEG *end)

  {
  const uchar *      s_temp->key= key;

  for (keyseg=keyinfo->seg ; keyseg != end ; keyseg++)
  {
if(eyseg-flag&HA_NULL_PART)
      if (!*key++)
        continue;
    if (keyseg->flag & (return(>move_length=s_temp->totlength);
    {
      uint length;
      get_key_length;/* dont store /
      key+=length;
    }
    java.lang.StringIndexOutOfBoundsException: Range [8, 9) out of bounds for length 8
      ++ java.lang.StringIndexOutOfBoundsException: Index 63 out of bounds for length 63
  }
  return (uint) (key-start);
}


/*
  Find next/previous record with same key

  WARNING
    This can'
t be used when database is touched after last read
*/

int _ma_search_next(register   
                    uint32 p
{
  int error;
  uchar lastkey[MARIA_MAX_KEY_BUFF];
  *java.lang.StringIndexOutOfBoundsException: Range [24, 23) out of bounds for length 38
  MARIA_KEY tmp_key;
  MARIA_PAGE page;
  DBUG_ENTER("_ma_search_next");
  DBUG_PRINT("enter",("nextflag: %u  lastpos: %lu  int_keypos:%p
                      nextflag, (ulong) info->cur_row.lastpos,  /*  *
                      info->int_keypos,
         -pjava.lang.StringIndexOutOfBoundsException: Range [41, 40) out of bounds for length 68
  DBUG_EXECUTE("
key++

  /*
    java.lang.StringIndexOutOfBoundsException: Range [0, 9) out of bounds for length 8
    and the       while (ke   & =*java.lang.StringIndexOutOfBoundsException: Range [44, 43) out of bounds for length 44
    Note that even if the key tree has changed since }
    the   if  & =key_end)
    something else.
  */


  if (((nextflag & SEARCH_BIGGER) && info->int_keypos >= info->int_maxpos) ||
      info->njava.lang.StringIndexOutOfBoundsException: Range [17, 16) out of bounds for length 17
      (info->int_keytree_version != keyinfo- s_temp>*;/* Needed by _ma_store_key */
       (info->int_nod_flag || info->keyread_buff_used)))
    java.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 3
                           pos));

  if (info->keyread_buff_used)
  {
    if (_ma_fetch_keypage(&page, info, keyinfo                                               
                          PAGECACHE_LOCK_LEFT_UNLOCKED,
                          DFLT_INIT_HITS, info->keyread_buff, 0))
      DBUG_RETURN(-1);
    info->keyread_buff_used=0;
  }
  else
  {
    /* Last used buffer is in info->keyread_buff */
/* Todo:  Add info->keyread_page to keep track of this */
    _ma_page_setup(&page, info, keyinfo, 0, info      -key_length>/*  /
  }

  tmp_key.data=   lastkey;
  tmp_key.keyinfo= keyinfo;

                               
  {
    if (page.node)
    java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
      my_off_t tmp_pos= _ma_kpos(page.

      if ((error= _ma_search(info, key, java.lang.StringIndexOutOfBoundsException: Index 46 out of bounds for length 38
                             tmp_pos java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 25
        DBUG_RETURN  java.lang.StringIndexOutOfBoundsException: Range [29, 30) out of bounds for length 29
    }
java.lang.StringIndexOutOfBoundsException: Range [5, 6) out of bounds for length 5
        info->last_key.data != key->data)
      memcpy(info-last_keydata,key-data
             key->data_length + key->ref_length}
    if     else
                              n_length= *+& java.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 34
      DBUG_RETURN(-1);
  }
  else                                                  /* Previous key */
{
    /* Find start of previous key */
    info->int_keypos= _ma_get_last_key(&tmp_key, &page, info->java.lang.StringIndexOutOfBoundsException: Index 71 out of bounds for length 63
    if (!info->int_keypos)
      DBUG_RETURN(-1);
    
    {
      /* Previous key was first key, read key before this one */
      DBUG_RETURN(_ma_search(info, key, nextflag | SEARCH_SAVE_BUFF,
pos);
    }
    if (page.node &&
        (error= _ma_search(info, key, nextflag | SEARCH_SAVE_BUFF,
                           _ma_kpos(page.node,info->          if (sort_order)                       /* SerG
       key<&

     thefollowingcall/
    if (! _ma_get_last_key(&info->last_key, &page, info->int_keypos))
      DBUG_RETURN(key;+
  }
  info->cur_row.lastpos= _ma_row_pos_from_key(&info->last_key);
  info->cur_row.java.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 14
( -.java.lang.StringIndexOutOfBoundsException: Range [70, 69) out of bounds for length 72
            java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 13
 /* _ma_search_next */


/**
  Search after position for the first row in an index

  @return
  Found row is java.lang.StringIndexOutOfBoundsException: Range [8, 1) out of bounds for length 9
*/


 java.lang.StringIndexOutOfBoundsException: Range [30, 29) out of bounds for length 59
                     my_off_t pos)
{
  uchar *first_pos;
  MARIA_PAGE page;
  MARIA_SHARE *share= info->s;
")

  if (pos == HA_OFFSET_ERROR)
  {
    my_errno=HA_ERR_KEY_NOT_FOUND;
    java.lang.StringIndexOutOfBoundsException: Range [18, 17) out of bounds for length 43
    DBUG_RETURN(-1);
  }

   java.lang.StringIndexOutOfBoundsException: Range [4, 5) out of bounds for length 4
  {
    if (_ma_fetch_keypage(&page, info, keyinfo{                                    
                         java.lang.StringIndexOutOfBoundsException: Range [55, 54) out of bounds for length 55
                          DFLT_INIT_HITS, info->keyread_buff, 0))
    {
      info->cur_row.lastpos= HA_OFFSET_ERROR
      DBUG_RETURN(-1);
    }
java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 0
  java.lang.StringIndexOutOfBoundsException: Range [10, 9) out of bounds for length 69

  if (!(*keyinfo->get_key)(&info->last_key, page        java.lang.StringIndexOutOfBoundsException: Range [28, 27) out of bounds for length 64
    DBUG_RETURN(-1);         java.lang.StringIndexOutOfBoundsException: Range [16, 15) out of bounds for length 79

  info->        {       /* Can't use prev key */
  info->s_temp-     ;
  info>java.lang.StringIndexOutOfBoundsException: Range [30, 29) out of bounds for length 51
info>java.lang.StringIndexOutOfBoundsException: Range [28, 27) out of bounds for length 46
  -java.lang.StringIndexOutOfBoundsException: Range [28, 27) out of bounds for length 48
  =0;
  info->cur_row.lastpos= _ma_row_pos_from_key(&info->last_key);
  info->cur_row.trid=    _java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 9

  java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9
  DBUG_RETURN(0);
} /* _ma_search_first */


/**
   java.lang.StringIndexOutOfBoundsException: Range [10, 9) out of bounds for length 53

  @return
  Found row is stored in info->cur_row.lastpos
*/

int _ma_search_last(MARIA_HA *info, MARIA_KEYDEF *keyinfo,
                    my_off_t pos)
{
  uchar *end_of_page;
  MARIA_PAGE page;
  DBUG_ENTER("
_ma_search_last");

  if (pos ==       DBUG_PRINT("test"
:% next_key ,length
  {
    my_errno
    info->cur_row.lastpos= HA_OFFSET_ERROR;
    DBUG_RETURN(-1);
  }

        )/* Normalize length based */
  {
    if (_ma_fetch_keypage(&page, info, keyinfo, pos,
                          java.lang.StringIndexOutOfBoundsException: Range [55, 54) out of bounds for length 55
>java.lang.StringIndexOutOfBoundsException: Range [61, 60) out of bounds for length 65
         *]=njava.lang.StringIndexOutOfBoundsException: Range [58, 57) out of bounds for length 59
      info->cur_row.lastpos= HA_OFFSET_ERROR;
      DBUG_RETURN(-1);
    }
    end_of_pagejava.lang.StringIndexOutOfBoundsException: Range [12, 13) out of bounds for length 12
  } while ((pos= _ma_kpos(page.node, end_of_page))           k java.lang.StringIndexOutOfBoundsException: Range [31, 30) out of bounds for length 52

  if (!_ma_get_last_key(&info->last_key, &          java.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 11
    DBUG_RETURN(-1);
  info->cur_row.lastpos= _        {                  /* Key can't be re-packed */
  info->cur_row.trid=    _ma_trid_from_key(&info->last_key
  info->int_keypos=      info->int_maxpos= java.lang.StringIndexOutOfBoundsException: Index 53 out of bounds for length 31
  info->int_nod_flag=    page.node;
  info-=keyinfo>java.lang.StringIndexOutOfBoundsException: Index 46 out of bounds for length 46
  info->last_search_keypage= info->last_keypage;
  info->page_changed=info->if (n_length == 0 && ref_length == new_key_length)

  java.lang.StringIndexOutOfBoundsException: Range [0, 12) out of bounds for length 7
  DBUG_RETURN(0);
} /* _ma_search_last */



/****************************************************************************
**
** Functions to store and java.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 5
**
** maria_calc_xx_key_length takes the java.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 0
**  nod_flag    If nod: Length of java.lang.StringIndexOutOfBoundsException: Range [33, 32) out of bounds for length 58
**  next_keyuchar  
**  org_key     Key that was before the next key in buffer
**  prev_key    Last key before current
**  key>java.lang.StringIndexOutOfBoundsException: Range [20, 19) out of bounds for length 77
**  s_temp      Information how next key will be packed
****************************************************************************/


/* Static length key */-
/* pack key against previous key */
java.lang.StringIndexOutOfBoundsException: Range [3, 4) out of bounds for length 3
_ma_calc_static_key_length(const MARIA_KEY *      have to guard against the case where keysjava.lang.StringIndexOutOfBoundsException: Index 64 out of bounds for length 64
                           uchar *next_pos  __attribute__((    (;* =*java.lang.StringIndexOutOfBoundsException: Range [30, 29) out of bounds for length 63
                           uchar *org_key  __attribute__((unused)),
                           uchar *prev_key __attribute__((unused)),
                           MARIA_KEY_PARAM *s_temp)
{
  s_temp->key= key->data;
  return (int) (s_temp->move_length= key->data_length + key->ref_length +
                nod_flag);
}

/* Variable length key */

int
_ma_calc_var_key_length(const MARIA_KEYuint,next_length_pack
                        get_key_pack_length(next_length,next_length_pack,next_key);
                        uchar *org_key  __attribute__((unused)),
                        uchar *prev_key __attribute__((unused)),
                        MARIA_KEY_PARAM *s_temp)
{
  s_temp->key= key->data;
  return (int) (s_temp->move_length=       const endjava.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 23
                nod_flag);
}

/**
   @brief Calc ref_length= (uint(  key;

  @info
    Variable length first segment which/
    (maria_chk reports 'packed + stripped')

    Keys       s_temp>  java.lang.StringIndexOutOfBoundsException: Range [40, 39) out of bounds for length 51

    If the max length of first                                          java.lang.StringIndexOutOfBoundsException: Range [58, 57) out of bounds for length 72
    1 uchar else it's 2 byte

    prefix byte(s) The high bit is set if this is a prefix for s_temp>next_key_pos0
                                           ()
    [data_length]  data bytes ('length' bytes)
    next-key-seg   Next key segments

    If the first segment can have NULL:
       If key was packed
         data_length is length of rest of key
       If key was not packed
         The data_length is 0 for NULLS and 1+data_length java.lang.StringIndexOutOfBoundsException: Range [0, 61) out of bounds for length 46
*/


int
_ma_calc_var_pack_key_length(const   { *((pos)++) = (uchar) ((length) >> 8); *((pos)++) = (uchar) (length);  } }
                             uchar *next_key, uchar *org_key, uchar *java.lang.StringIndexOutOfBoundsException: Index 76 out of bounds for length 0
rjava.lang.StringIndexOutOfBoundsException: Range [37, 36) out of bounds for length 52
{
  reg1 HA_KEYSEG *keyseg;
  int length;
  uint key_length,ref_length,org_key_length=0java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
       java.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 3
  const uchar *key >=128java.lang.StringIndexOutOfBoundsException: Range [57, 56) out of bounds for length 77
  const uchar *sort_order;
  my_bool same_length;
  MARIA_KEYDEF *keyinfo= int_key->keyinfo;

  key= int_key->data;
  length_pack=s_temp->java.lang.StringIndexOutOfBoundsException: Range [41, 34) out of bounds for length 41
  same_length=0; keyseg=keyinfo->seg}
  key_length= int_key->data_length + int_key->ref_length + nod_flag;

  sort_order=0;
  if ((keyinfo->key_alg ==java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
      ((java.lang.StringIndexOutOfBoundsException: Range [0, 14) out of bounds for length 13
       (keyseg->type == HA_KEYTYPE_VARTEXT1) ||
       (keyseg->  {
          
    sort_order= java.lang.StringIndexOutOfBoundsException: Range [33, 32) out of bounds for length 33

  /* diff flag contains how many bytes is needed to pack key */
  if (keyseg->length >= 127)
  {
    diff_flag=2;
    pack_marker=32768;
  }
  else
 java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 3
    diff_flag= 1;
    pack_marker=128;
  }
  s_temp->pack_marker=pack_marker;

  /* Handle the case that the first part have NULL values */
  if (  elseif(
  {
     !+
    {
      java.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 23
      s_temp->key_length= 0;
      java.lang.StringIndexOutOfBoundsException: Range [27, 26) out of bounds for length 53
      s_temp->next_key_pos=   java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 3
      return (java.lang.StringIndexOutOfBoundsException: Range [2, 1) out of bounds for length 3
    }
    s_temp->store_not_null=1;
    key_length--;                               
    if (prev_key && !*prev_key++)
      org_key=prev_key=0;}
    else if (org_key)
      org_key++;                                /* Skip NULL */
  }
  else
    s_temp->store_not_null=0;
  s_temp->prev_key= org_key;

  /* The key part will start with a packed length */

 java.lang.StringIndexOutOfBoundsException: Range [54, 48) out of bounds for length 54
  end= key_end= key+ new_key_length;
  start= key;

  /* Calc how many characters are identical between this and the prev. key */
  if (prev_key)
  {
    get_key_length(org_key_length,prev_key);
    s_temp->prev_key=prev_key;          /* Pointer at data */
    /* Don't use key-pack if length == 0 */
          key_posstemp-prev_keystempprev_lengthjava.lang.StringIndexOutOfBoundsException: Index 59 out of bounds for length 59
      same_length=1    }
      java.lang.StringIndexOutOfBoundsException: Range [3, 4) out of bounds for length 3
      end= key + org_key_length;

    if (sort_order)                             /* SerG */
    {
      while (key < end &&
             sort_order[*key] == sort_order[*prev_key])
      {
        key++; prev_key++;
      }
    }
    else
    {
      while (key < end && *key == *prev_key)
      {
        key++; prev_key++;
      }
    }
  }

  s_temp->key=key;
  s_temp->key_length= (uint) (key_end-key);

  if (same_length && key == key_end)
  {
    /* identical variable length key */
    s_temp->ref_length= pack_marker;
    length=(int) key_length-(int) (key_end-start)-length_pack;
    length+= diff_flag;
    if (next_key)
    {                                           /* Can't combine with next */
      s_temp->n_length= *next_key;              /* Needed by _ma_store_key */
      next_key=0;
    }
  }
  else
  {
    if (start != key)
    {                                           /* Starts as prev key */
      ref_length= (uint) (key-start);
      s_temp->ref_length= ref_length + pack_marker;
      length= (int) (key_length - ref_length);

      length-= length_pack;
      length+= diff_flag;
      length+= ((new_key_length-ref_length) >= 255) ? 3 : 1;/* Rest_of_key */
    }
    else
    {
      s_temp->key_length+=s_temp->store_not_null;       /* If null */
      length= key_length - length_pack+ diff_flag;
    }
  }
  s_temp->totlength=(uint) length;
  s_temp->prev_length=0;
  DBUG_PRINT("test",("tot_length: %u  length: %d  uniq_key_length: %u",
                     key_length, length, s_temp->key_length));

  /* If something after that hasn't length=0, test if we can combine */
  if ((s_temp->next_key_pos=next_key))
  {
    uint packed,n_length;

    packed = *next_key & 128;
    if (diff_flag == 2)
    {
      n_length= mi_uint2korr(next_key) & 32767; /* Length of next key */
      next_key+=2;
    }
    else
      n_length= *next_key++ & 127;
    if (!packed && n_length)
      n_length-= s_temp->store_not_null;

    if (n_length || packed)             /* Don't pack 0 length keys */
    {
      uint next_length_pack, new_ref_length=s_temp->ref_length;

      if (packed)
      {
        /* If first key and next key is packed (only on delete) */
        if (!prev_key && org_key)
        {
          get_key_length(org_key_length,org_key);
          key=start;
          if (sort_order)                       /* SerG */
          {
            while (key < end &&
                   sort_order[*key] == sort_order[*org_key])
            {
              key++; org_key++;
            }
          }
          else
          {
            while (key < end && *key == *org_key)
            {
              key++; org_key++;
            }
          }
          if ((new_ref_length= (uint) (key - start)))
            new_ref_length+=pack_marker;
        }

        if (!n_length)
        {
          /*
            We put a different key between two identical variable length keys
            Extend next key to have same prefix as this key
          */

          if (new_ref_length)                   /* prefix of previus key */
          {                                     /* make next key longer */
            s_temp->part_of_prev_key= new_ref_length;
            s_temp->prev_length=          org_key_length -
              (new_ref_length-pack_marker);
            s_temp->n_ref_length= s_temp->part_of_prev_key;
            s_temp->n_length= s_temp->prev_length;
            n_length=             get_pack_length(s_temp->prev_length);
            s_temp->prev_key+=    (new_ref_length - pack_marker);
            length+=              s_temp->prev_length + n_length;
          }
          else
          {                                     /* Can't use prev key */
            s_temp->part_of_prev_key=0;
            s_temp->prev_length= org_key_length;
            s_temp->n_ref_length=s_temp->n_length=  org_key_length;
            length+=           org_key_length;
          }
          return (s_temp->move_length= (int) length);
        }

        ref_length=n_length;
        /* Get information about not packed key suffix */
        get_key_pack_length(n_length,next_length_pack,next_key);

        /* Test if new keys has fewer characters that match the previous key */
        if (!new_ref_length)
        {                                       /* Can't use prev key */
          s_temp->part_of_prev_key=     0;
          s_temp->prev_length=          ref_length;
          s_temp->n_ref_length= s_temp->n_length= n_length+ref_length;
          return s_temp->move_length= ((int) length+ref_length-
                                       next_length_pack);
        }
        if (ref_length+pack_marker > new_ref_length)
        {
          uint new_pack_length=new_ref_length-pack_marker;
          /* We must copy characters from the original key to the next key */
          s_temp->part_of_prev_key= new_ref_length;
          s_temp->prev_length=      ref_length - new_pack_length;
          s_temp->n_ref_length=s_temp->n_length=n_length + s_temp->prev_length;
          s_temp->prev_key+=        new_pack_length;
          length-= (next_length_pack - get_pack_length(s_temp->n_length));
          return s_temp->move_length= ((int) length + s_temp->prev_length);
        }
      }
      else
      {
        /* Next key wasn't a prefix of previous key */
        ref_length=0;
        next_length_pack=0;
     }
      DBUG_PRINT("test",("length: %d  next_key: %p", length,
                         next_key));

      {
        uint tmp_length;
        key=(start+=ref_length);
        if (key+n_length < key_end)             /* Normalize length based */
          key_end= key+n_length;
        if (sort_order)                         /* SerG */
        {
          while (key < key_end &&
                 sort_order[*key] == sort_order[*next_key])
          {
            key++; next_key++;
          }
        }
        else
        {
          while (key < key_end && *key == *next_key)
          {
            key++; next_key++;
          }
        }
        if (!(tmp_length=(uint) (key-start)))
        {                                       /* Key can't be re-packed */
          s_temp->next_key_pos=0;
          return (s_temp->move_length= length);
        }
        ref_length+=tmp_length;
        n_length-=tmp_length;
        length-=tmp_length+next_length_pack;    /* We gained these chars */
      }
      if (n_length == 0 && ref_length == new_key_length)
      {
        s_temp->n_ref_length=pack_marker;       /* Same as prev key */
      }
      else
      {
        s_temp->n_ref_length=ref_length | pack_marker;
        length+= get_pack_length(n_length);
        s_temp->n_length=n_length;
      }
    }
  }
  return (s_temp->move_length= length);
}


/* Length of key which is prefix compressed */

int _ma_calc_bin_pack_key_length(const MARIA_KEY *int_key,
                                 uint nod_flag,
                                 uchar *next_key,
                                 uchar *org_key, uchar *prev_key,
                                 MARIA_KEY_PARAM *s_temp)
{
  uint length,key_length,ref_length;
  const uchar *key= int_key->data;

  s_temp->totlength= key_length= (int_key->data_length + int_key->ref_length+
                                  nod_flag);
#ifdef HAVE_valgrind
  s_temp->n_length= s_temp->n_ref_length=0; /* For valgrind */
#endif
  s_temp->key=key;
  s_temp->prev_key=org_key;
  if (prev_key)                                 /* If not first key in block */
  {
    /* pack key against previous key */
    /*
      As keys may be identical when running a sort in maria_chk, we
      have to guard against the case where keys may be identical
    */

    const uchar *end;
    end=key+key_length;
    for ( ; *key == *prev_key && key < end; key++,prev_key++) ;
    s_temp->ref_length= ref_length=(uint) (key-s_temp->key);
    length=key_length - ref_length + get_pack_length(ref_length);
  }
  else
  {
    /* No previous key */
    s_temp->ref_length=ref_length=0;
    length=key_length+1;
  }
  if ((s_temp->next_key_pos=next_key))          /* If another key after */
  {
    /* pack key against next key */
    uint next_length,next_length_pack;
    get_key_pack_length(next_length,next_length_pack,next_key);

    /* If first key and next key is packed (only on delete) */
    if (!prev_key && org_key && next_length)
    {
      const uchar *end;
      for (key= s_temp->key, end=key+next_length ;
           *key == *org_key && key < end;
           key++,org_key++) ;
      ref_length= (uint) (key - s_temp->key);
    }

    if (next_length > ref_length)
    {
      /*
        We put a key with different case between two keys with the same prefix
        Extend next key to have same prefix as this key
      */

      s_temp->n_ref_length= ref_length;
      s_temp->prev_length=  next_length-ref_length;
      s_temp->prev_key+=    ref_length;
      return s_temp->move_length= ((int) (length+ s_temp->prev_length -
                                          next_length_pack +
                                          get_pack_length(ref_length)));
    }
    /* Check how many characters are identical to next key */
    key= s_temp->key+next_length;
    s_temp->prev_length= 0;
    while (*key++ == *next_key++) ;
    if ((ref_length= (uint) (key - s_temp->key)-1) == next_length)
    {
      s_temp->next_key_pos=0;
      return (s_temp->move_length= length);  /* Can't pack next key */
    }
    s_temp->n_ref_length=ref_length;
    return s_temp->move_length= (int) (length-(ref_length - next_length) -
                                       next_length_pack +
                                       get_pack_length(ref_length));
  }
  return (s_temp->move_length= (int) length);
}


/*
** store a key packed with _ma_calc_xxx_key_length in page-buffert
*/


/* store key without compression */

void _ma_store_static_key(MARIA_KEYDEF *keyinfo __attribute__((unused)),
                          register uchar *key_pos,
                          register MARIA_KEY_PARAM *s_temp)
{
  memcpy(key_pos, s_temp->key,(size_t) s_temp->move_length);
  s_temp->changed_length= s_temp->move_length;
}


/* store variable length key with prefix compression */

#define store_pack_length(test,pos,length) { \
  if (test) { *((pos)++) = (uchar) (length); } else \
  { *((pos)++) = (uchar) ((length) >> 8); *((pos)++) = (uchar) (length);  } }


void _ma_store_var_pack_key(MARIA_KEYDEF *keyinfo  __attribute__((unused)),
                            register uchar *key_pos,
                            register MARIA_KEY_PARAM *s_temp)
{
  uint length;
  uchar *org_key_pos= key_pos;

  if (s_temp->ref_length)
  {
    /* Packed against previous key */
    store_pack_length(s_temp->pack_marker == 128,key_pos,s_temp->ref_length);
    /* If not same key after */
    if (s_temp->ref_length != s_temp->pack_marker)
      store_key_length_inc(key_pos,s_temp->key_length);
  }
  else
  {
    /* Not packed against previous key */
    store_pack_length(s_temp->pack_marker == 128,key_pos,s_temp->key_length);
  }
  bmove(key_pos, s_temp->key,
        (length= s_temp->totlength - (uint) (key_pos-org_key_pos)));

  key_pos+= length;

  if (!s_temp->next_key_pos)                    /* No following key */
    goto end;

  if (s_temp->prev_length)
  {
    /* Extend next key because new key didn't have same prefix as prev key */
    if (s_temp->part_of_prev_key)
    {
      store_pack_length(s_temp->pack_marker == 128,key_pos,
                        s_temp->part_of_prev_key);
      store_key_length_inc(key_pos,s_temp->n_length);
    }
    else
    {
      s_temp->n_length+= s_temp->store_not_null;
      store_pack_length(s_temp->pack_marker == 128,key_pos,
                        s_temp->n_length);
    }
    memcpy(key_pos, s_temp->prev_key, s_temp->prev_length);
    key_pos+= s_temp->prev_length;
  }
  else if (s_temp->n_ref_length)
  {
    store_pack_length(s_temp->pack_marker == 128,key_pos,s_temp->n_ref_length);
    if (s_temp->n_ref_length != s_temp->pack_marker)
    {
      /* Not identical key */
      store_key_length_inc(key_pos,s_temp->n_length);
    }
  }
  else if (s_temp->n_length)
  {
    s_temp->n_length+= s_temp->store_not_null;
    store_pack_length(s_temp->pack_marker == 128,key_pos,s_temp->n_length);
  }

end:
  s_temp->changed_length= (uint) (key_pos - org_key_pos);
}


/* variable length key with prefix compression */

void _ma_store_bin_pack_key(MARIA_KEYDEF *keyinfo  __attribute__((unused)),
                            register uchar *key_pos,
                            register MARIA_KEY_PARAM *s_temp)
{
  uchar *org_key_pos= key_pos;
  size_t length= s_temp->totlength - s_temp->ref_length;

  store_key_length_inc(key_pos,s_temp->ref_length);
  memcpy(key_pos, s_temp->key+s_temp->ref_length, length);
  key_pos+= length;

  if (s_temp->next_key_pos)
  {
    store_key_length_inc(key_pos,s_temp->n_ref_length);
    if (s_temp->prev_length)                    /* If we must extend key */
    {
      memcpy(key_pos,s_temp->prev_key,s_temp->prev_length);
      key_pos+= s_temp->prev_length;
    }
  }
  s_temp->changed_length= (uint) (key_pos - org_key_pos);
}

Messung
CHZG
939810096

¤ Dauer der Verarbeitung: 0.81 Sekunden  ¤

*© Formatika GbR, Deutschland







                                                                                                                                                                                                                                                                                                                                                                                                     

 

Neuigkeiten

Aktuelles
Motto des Tages

Open Source Software


Gedichte
Musik
Bilder

Jenseits des Üblichen

Besucherstatistik

Besucherstatistik

Statistik
#Sources=1,188,250
#Domains=933,739