~ubuntu-branches/ubuntu/hardy/mysql-dfsg-5.0/hardy-updates

« back to all changes in this revision

Viewing changes to libmysqld/filesort.cc

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt
  • Date: 2007-04-02 16:10:53 UTC
  • mfrom: (1.1.9 upstream)
  • Revision ID: james.westby@ubuntu.com-20070402161053-zkil9hjq9k5p1uzv
Tags: 5.0.37-0ubuntu1
* New upstream bugfix release.
  - Fixes replication failure with auto-increment and on duplicate key
    update, a regression introduced into 5.0.24. (LP: #95821)
* debian/control: Set Ubuntu maintainer.
* debian/rules: Change comments from 'Debian etch' to 'Ubuntu 7.04'.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB  
 
1
/* Copyright (C) 2000-2006 MySQL AB  
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
5
 
   the Free Software Foundation; either version 2 of the License, or
6
 
   (at your option) any later version.
 
5
   the Free Software Foundation; version 2 of the License.
7
6
 
8
7
   This program is distributed in the hope that it will be useful,
9
8
   but WITHOUT ANY WARRANTY; without even the implied warranty of
429
428
  byte *ref_pos,*next_pos,ref_buff[MAX_REFLENGTH];
430
429
  my_off_t record;
431
430
  TABLE *sort_form;
432
 
  volatile THD::killed_state *killed= &current_thd->killed;
 
431
  THD *thd= current_thd;
 
432
  volatile THD::killed_state *killed= &thd->killed;
433
433
  handler *file;
434
434
  DBUG_ENTER("find_all_keys");
435
435
  DBUG_PRINT("info",("using: %s",(select?select->quick?"ranges":"where":"every row")));
526
526
    }
527
527
    else
528
528
      file->unlock_row();
 
529
    /* It does not make sense to read more keys in case of a fatal error */
 
530
    if (thd->net.report_error)
 
531
      DBUG_RETURN(HA_POS_ERROR);
529
532
  }
530
533
  if (quick_select)
531
534
  {