mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Merge branch 'master' into performance
Conflicts: HISTORY.md db/db_impl.cc db/memtable.cc
This commit is contained in:
@@ -174,7 +174,7 @@ bool FilterBlockReader::MayMatch(uint64_t block_offset, const Slice& entry) {
|
||||
if (index < num_) {
|
||||
uint32_t start = DecodeFixed32(offset_ + index*4);
|
||||
uint32_t limit = DecodeFixed32(offset_ + index*4 + 4);
|
||||
if (start <= limit && limit <= (offset_ - data_)) {
|
||||
if (start <= limit && limit <= (uint32_t)(offset_ - data_)) {
|
||||
Slice filter = Slice(data_ + start, limit - start);
|
||||
return policy_->KeyMayMatch(entry, filter);
|
||||
} else if (start == limit) {
|
||||
|
||||
@@ -149,9 +149,11 @@ Status ReadProperties(
|
||||
}
|
||||
|
||||
BlockContents block_contents;
|
||||
ReadOptions read_options;
|
||||
read_options.verify_checksums = false;
|
||||
Status s = ReadBlockContents(
|
||||
file,
|
||||
ReadOptions(),
|
||||
read_options,
|
||||
handle,
|
||||
&block_contents,
|
||||
env,
|
||||
@@ -240,9 +242,11 @@ Status ReadTableProperties(
|
||||
|
||||
auto metaindex_handle = footer.metaindex_handle();
|
||||
BlockContents metaindex_contents;
|
||||
ReadOptions read_options;
|
||||
read_options.verify_checksums = false;
|
||||
s = ReadBlockContents(
|
||||
file,
|
||||
ReadOptions(),
|
||||
read_options,
|
||||
metaindex_handle,
|
||||
&metaindex_contents,
|
||||
env,
|
||||
|
||||
Reference in New Issue
Block a user