This repository has been archived by the owner on Oct 11, 2018. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow reading of headerless compressed pages
Summary: WebScaleSQL Feature: 2012 InnoDB Compression The complete version of 2012 compression writes headerless zlib data blobs. This is true in both the 5.1 and 5.6 Facebook branches. This change allows WebScaleSQL to read those pages, in addition to those with headers. But, this still writes only with zlib headers, not without. A later diff will add support to WebScaleSQL for actually writing these headerless pages. Needed to backport inflateReset2() from a future version of zlib in order to reset a decompression stream without allocating memory for its internal state and with specifying windowBits. This was necessary to automatically determine whether a compressed page was compressed using adler32 checksums or not. There should not be any issues in terms of backwards compatibility with this. After this, a clean build is required for stress tests to pass. Test Plan: Tested reading data compressed by the FB branch. Worked. Reviewers: pivanof, inaam-rana Reviewed By: inaam-rana Subscribers: WebScaleSQL, jtolmer Differential Revision: https://reviews.facebook.net/D17691
- Loading branch information
1 parent
eeaa9f0
commit 6279eba
Showing
5 changed files
with
138 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters