mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Change namespace from leveldb to rocksdb
Summary: Change namespace from leveldb to rocksdb. This allows a single application to link in open-source leveldb code as well as rocksdb code into the same process. Test Plan: compile rocksdb Reviewers: emayanke Reviewed By: emayanke CC: leveldb Differential Revision: https://reviews.facebook.net/D13287
This commit is contained in:
@@ -15,14 +15,14 @@
|
||||
|
||||
namespace std {
|
||||
template <>
|
||||
struct hash<leveldb::Slice> {
|
||||
size_t operator()(const leveldb::Slice& slice) const {
|
||||
struct hash<rocksdb::Slice> {
|
||||
size_t operator()(const rocksdb::Slice& slice) const {
|
||||
return MurmurHash(slice.data(), slice.size(), 0);
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
namespace leveldb {
|
||||
namespace rocksdb {
|
||||
namespace {
|
||||
|
||||
using namespace stl_wrappers;
|
||||
@@ -334,4 +334,4 @@ std::shared_ptr<MemTableRep::Iterator> PrefixHashRep::GetPrefixIterator(
|
||||
return TransformRep::GetTransformIterator(prefix);
|
||||
}
|
||||
|
||||
} // namespace leveldb
|
||||
} // namespace rocksdb
|
||||
|
||||
Reference in New Issue
Block a user