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

« back to all changes in this revision

Viewing changes to mysys/mf_iocache.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) 2000 MySQL AB
 
1
/*
 
2
   Copyright (c) 2000, 2010, 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
  Cashing of files with only does (sequential) read or writes of fixed-
1701
1703
#endif
1702
1704
 
1703
1705
 
1704
 
int my_b_flush_io_cache(IO_CACHE *info, int need_append_buffer_lock)
 
1706
int my_b_flush_io_cache(IO_CACHE *info,
 
1707
                        int need_append_buffer_lock __attribute__((unused)))
1705
1708
{
1706
1709
  size_t length;
1707
 
  my_bool append_cache;
1708
1710
  my_off_t pos_in_file;
 
1711
  my_bool append_cache= (info->type == SEQ_READ_APPEND);
1709
1712
  DBUG_ENTER("my_b_flush_io_cache");
1710
1713
  DBUG_PRINT("enter", ("cache: 0x%lx", (long) info));
1711
1714
 
1712
 
  if (!(append_cache = (info->type == SEQ_READ_APPEND)))
1713
 
    need_append_buffer_lock=0;
 
1715
#ifdef THREAD
 
1716
  if (!append_cache)
 
1717
    need_append_buffer_lock= 0;
 
1718
#endif
1714
1719
 
1715
1720
  if (info->type == WRITE_CACHE || append_cache)
1716
1721
  {