-
Notifications
You must be signed in to change notification settings - Fork 20
Open
Description
Native library leveldb compiled without Snappy.
As result when you open existence leveldb database, which is used Snappy, corrupted compressed block contents error occurs.
So my suggestion to add Snappy support!
format.cc:
case kSnappyCompression: {
size_t ulength = 0;
if (!port::Snappy_GetUncompressedLength(data, n, &ulength)) {
delete[] buf;
return Status::Corruption("corrupted compressed block contents"); // <--- Always error
}
port_win.h:
inline bool Snappy_GetUncompressedLength(const char* input, size_t length,
size_t* result) {
#ifdef SNAPPY
return snappy::GetUncompressedLength(input, length, result);
#else
return false; // <-- always false
#endif
}
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels