mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Fix the valgrind issues
This commit is contained in:
@@ -647,7 +647,7 @@ class Harness {
|
||||
case PLAIN_TABLE_FULL_STR_PREFIX:
|
||||
support_prev_ = false;
|
||||
only_support_prefix_seek_ = true;
|
||||
options_.prefix_extractor = NewNoopTransform();
|
||||
options_.prefix_extractor = noop_transform.get();
|
||||
options_.allow_mmap_reads = true;
|
||||
options_.table_factory.reset(new PlainTableFactory());
|
||||
constructor_ = new TableConstructor(options_.comparator, true);
|
||||
@@ -849,8 +849,12 @@ class Harness {
|
||||
bool support_prev_;
|
||||
bool only_support_prefix_seek_;
|
||||
shared_ptr<Comparator> internal_comparator_;
|
||||
static std::unique_ptr<const SliceTransform> noop_transform;
|
||||
};
|
||||
|
||||
std::unique_ptr<const SliceTransform> Harness::noop_transform(
|
||||
NewNoopTransform());
|
||||
|
||||
static bool Between(uint64_t val, uint64_t low, uint64_t high) {
|
||||
bool result = (val >= low) && (val <= high);
|
||||
if (!result) {
|
||||
|
||||
Reference in New Issue
Block a user