Description
There're 2 issues in leveldb-1.4.
1. Leveldb didn't build. Have to define MemoryBarrier() for s390x.
I got the patch form https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=644336 .
2. A number of unit tests failed due to 1.4 doesn't detect endianness properly. And s390x is big-endian.
Got error messages like "Failed to recover the log: Corruption: checksum mismatch".
I have a backport patch which is part of the leveldb commit
https://github.com/google/leveldb/commit/075a35a6d390167b77b687e067dd0ba593e7f624