make innochecksum work on compressed tables
this patch ports the work that facebook has performed
to make innochecksum handle compressed tables.
the basic idea is to use actual innodb-code to perform
checksum verification rather than duplicating in innochecksum.cc.
to make this work, innodb code has been annotated with
lots of #ifndef UNIV_INNOCHECKSUM so that it can be
compiled outside of storage/innobase.
a new testcase is also added that verifies that innochecksum
works on compressed/non-compressed tables.
the actual steps to produce this patch are:
- take innochecksum from 5.6.14
- apply changes in innodb from facebook patches needed to make innochecksum compile
- apply changes in innochecksum from facebook patches
- add handcrafted testcase
the referenced facebook patches used are: