~ubuntu-branches/ubuntu/precise/mysql-5.5/precise-201203300109

« back to all changes in this revision

Viewing changes to storage/myisam/mi_packrec.c

  • Committer: Package Import Robot
  • Author(s): Clint Byrum
  • Date: 2012-02-14 23:59:22 UTC
  • mfrom: (1.1.2)
  • Revision ID: package-import@ubuntu.com-20120214235922-cux5uek1e5l0hje9
Tags: 5.5.20-0ubuntu1
* New upstream release.
* d/mysql-server-5.5.mysql.upstart: Fix stop on to make sure mysql is
  fully stopped before shutdown commences. (LP: #688541) Also simplify
  start on as it is redundant.
* d/control: Depend on upstart version which has apparmor profile load
  script to prevent failure on upgrade from lucid to precise.
  (LP: #907465)
* d/apparmor-profile: need to allow /run since that is the true path
  of /var/run files. (LP: #917542)
* d/control: mysql-server-5.5 has files in it that used to be owned
  by libmysqlclient-dev, so it must break/replace it. (LP: #912487)
* d/rules, d/control: 5.5.20 Fixes segfault on tests with gcc 4.6,
  change compiler back to system default.
* d/rules: Turn off embedded libedit/readline.(Closes: #659566)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1549
1549
 
1550
1550
void _mi_unmap_file(MI_INFO *info)
1551
1551
{
1552
 
  (void) my_munmap((char*) info->s->file_map,
1553
 
                   (size_t) info->s->mmaped_length + MEMMAP_EXTRA_MARGIN);
 
1552
  DBUG_ASSERT(info->s->options & HA_OPTION_COMPRESS_RECORD);
 
1553
 
 
1554
  (void) my_munmap((char*) info->s->file_map, (size_t) info->s->mmaped_length);
1554
1555
 
1555
1556
  if (myisam_mmap_size != SIZE_T_MAX)
1556
1557
  {
1557
1558
    mysql_mutex_lock(&THR_LOCK_myisam_mmap);
1558
 
    myisam_mmap_used-= info->s->mmaped_length + MEMMAP_EXTRA_MARGIN;
 
1559
    myisam_mmap_used-= info->s->mmaped_length;
1559
1560
    mysql_mutex_unlock(&THR_LOCK_myisam_mmap);
1560
1561
  }
1561
1562
}