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

« back to all changes in this revision

Viewing changes to storage/myisam/ha_myisam.cc

  • 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:
1026
1026
                        mi_get_mask_all_keys_active(share->base.keys) :
1027
1027
                        share->state.key_map);
1028
1028
    uint testflag=param.testflag;
 
1029
#ifdef HAVE_MMAP
 
1030
    bool remap= test(share->file_map);
 
1031
    /*
 
1032
      mi_repair*() functions family use file I/O even if memory
 
1033
      mapping is available.
 
1034
 
 
1035
      Since mixing mmap I/O and file I/O may cause various artifacts,
 
1036
      memory mapping must be disabled.
 
1037
    */
 
1038
    if (remap)
 
1039
      mi_munmap_file(file);
 
1040
#endif
1029
1041
    if (mi_test_if_sort_rep(file,file->state->records,key_map,0) &&
1030
1042
        (local_testflag & T_REP_BY_SORT))
1031
1043
    {
1057
1069
      error=  mi_repair(&param, file, fixed_name,
1058
1070
                        param.testflag & T_QUICK);
1059
1071
    }
 
1072
#ifdef HAVE_MMAP
 
1073
    if (remap)
 
1074
      mi_dynmap_file(file, file->state->data_file_length);
 
1075
#endif
1060
1076
    param.testflag=testflag;
1061
1077
    optimize_done=1;
1062
1078
  }