~ubuntu-branches/ubuntu/maverick/mysql-5.1/maverick-proposed

« back to all changes in this revision

Viewing changes to storage/myisam/rt_index.c

  • Committer: Package Import Robot
  • Author(s): Marc Deslauriers
  • Date: 2012-02-22 14:16:05 UTC
  • mto: This revision was merged to the branch mainline in revision 20.
  • Revision ID: package-import@ubuntu.com-20120222141605-nxlu9yzc6attylc2
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) 2002-2006 MySQL AB & Ramil Kalimullin
 
1
/* Copyright (c) 2002, 2010, Oracle and/or its affiliates. All rights reserved.
2
2
   
3
3
   This program is free software; you can redistribute it and/or modify
4
4
   it under the terms of the GNU General Public License as published by
481
481
                             uint key_length, uchar *page_buf, uint nod_flag)
482
482
{
483
483
  double increase;
484
 
  double best_incr;
 
484
  double UNINIT_VAR(best_incr);
485
485
  double area;
486
 
  double best_area;
 
486
  double UNINIT_VAR(best_area);
487
487
  uchar *best_key= NULL;
488
488
  uchar *k = rt_PAGE_FIRST_KEY(page_buf, nod_flag);
489
489
  uchar *last = rt_PAGE_END(page_buf);
490
490
 
491
 
  LINT_INIT(best_area);
492
 
  LINT_INIT(best_key);
493
 
  LINT_INIT(best_incr);
494
 
 
495
491
  for (; k < last; k = rt_PAGE_NEXT_KEY(k, key_length, nod_flag))
496
492
  {
497
493
    /* The following is safe as -1.0 is an exact number */