~ubuntu-branches/ubuntu/lucid/mysql-dfsg-5.1/lucid-security

« back to all changes in this revision

Viewing changes to storage/myisam/mi_range.c

  • Committer: Package Import Robot
  • Author(s): Marc Deslauriers
  • Date: 2012-02-22 22:33:55 UTC
  • mto: (1.2.1) (37.1.1 lucid-security)
  • mto: This revision was merged to the branch mainline in revision 36.
  • Revision ID: package-import@ubuntu.com-20120222223355-ku1tb4r70osci6v2
Tags: upstream-5.1.61
ImportĀ upstreamĀ versionĀ 5.1.61

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* Copyright (C) 2000-2004, 2006 MySQL AB
 
1
/*
 
2
   Copyright (c) 2000, 2011, Oracle and/or its affiliates. All rights reserved.
2
3
 
3
4
   This program is free software; you can redistribute it and/or modify
4
5
   it under the terms of the GNU General Public License as published by
11
12
 
12
13
   You should have received a copy of the GNU General Public License
13
14
   along with this program; if not, write to the Free Software
14
 
   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA */
 
15
   Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301  USA
 
16
*/
15
17
 
16
18
/*
17
19
  Gives a approximated number of how many records there is between two keys.
193
195
                             register my_off_t pos)
194
196
{
195
197
  int flag;
196
 
  uint nod_flag,keynr,max_keynr;
 
198
  uint nod_flag,keynr,UNINIT_VAR(max_keynr);
197
199
  my_bool after_key;
198
200
  uchar *keypos,*buff;
199
201
  double offset;
200
202
  DBUG_ENTER("_mi_search_pos");
201
 
  LINT_INIT(max_keynr);
202
203
 
203
204
  if (pos == HA_OFFSET_ERROR)
204
205
    DBUG_RETURN(0.5);