Skip to content

Commit

Permalink
Renaming Zlib decompression function to keep it consistent w/ compres…
Browse files Browse the repository at this point in the history
…sion fcn
  • Loading branch information
YabMek433 committed Jul 18, 2023
1 parent 673de56 commit 6689e1f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion port/port_stdcxx.h
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ inline bool Zstd_Uncompress(const char* input, size_t length, char* output) {
*/
}

inline bool ZLibRaw_Uncompress(const char* input, size_t length, ::std::string& output) {
inline bool ZlibRaw_Uncompress(const char* input, size_t length, ::std::string& output) {
const int CHUNK = 64 * 1024;

int ret;
Expand Down
2 changes: 1 addition & 1 deletion table/format.cc
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ Status ReadBlock(RandomAccessFile* file, const ReadOptions& options,
}
case kZLibRawCompression: {
std::string buffer;
if (!port::ZLibRaw_Uncompress(data, n, buffer)) {
if (!port::ZlibRaw_Uncompress(data, n, buffer)) {
delete[] buf;
return Status::Corruption("corrupted zlib compressed block contents");
}
Expand Down

0 comments on commit 6689e1f

Please sign in to comment.