~ubuntu-branches/ubuntu/wily/mysql-5.6/wily

« back to all changes in this revision

Viewing changes to storage/innobase/buf/buf0checksum.cc

  • Committer: Package Import Robot
  • Author(s): Marc Deslauriers
  • Date: 2015-07-21 07:09:29 UTC
  • mto: This revision was merged to the branch mainline in revision 14.
  • Revision ID: package-import@ubuntu.com-20150721070929-mg4dpqkgg3it1ajf
Tags: upstream-5.6.25
ImportĀ upstreamĀ versionĀ 5.6.25

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*****************************************************************************
2
2
 
3
 
Copyright (c) 1995, 2011, Oracle and/or its affiliates. All Rights Reserved.
 
3
Copyright (c) 1995, 2015, Oracle and/or its affiliates. All Rights Reserved.
4
4
 
5
5
This program is free software; you can redistribute it and/or modify it under
6
6
the terms of the GNU General Public License as published by the Free Software
138
138
{
139
139
        switch (algo) {
140
140
        case SRV_CHECKSUM_ALGORITHM_CRC32:
 
141
                return("crc32");
141
142
        case SRV_CHECKSUM_ALGORITHM_STRICT_CRC32:
142
 
                return("crc32");
 
143
                return("strict_crc32");
143
144
        case SRV_CHECKSUM_ALGORITHM_INNODB:
 
145
                return("innodb");
144
146
        case SRV_CHECKSUM_ALGORITHM_STRICT_INNODB:
145
 
                return("innodb");
 
147
                return("strict_innodb");
146
148
        case SRV_CHECKSUM_ALGORITHM_NONE:
 
149
                return("none");
147
150
        case SRV_CHECKSUM_ALGORITHM_STRICT_NONE:
148
 
                return("none");
 
151
                return("strict_none");
149
152
        }
150
153
 
151
154
        ut_error;