Merge branch 'ps/reftable-block-search-fix'
The reftable code has its own custom binary search function whose comparison callback has an unusual interface, which caused the binary search to degenerate into a linear search, which has been corrected. * ps/reftable-block-search-fix: reftable/block: fix binary search over restart counter reftable/record: fix memory leak when decoding object records
This commit is contained in:
@ -301,7 +301,7 @@ static int restart_key_less(size_t idx, void *args)
|
||||
|
||||
result = strbuf_cmp(&a->key, &rkey);
|
||||
strbuf_release(&rkey);
|
||||
return result;
|
||||
return result < 0;
|
||||
}
|
||||
|
||||
void block_iter_copy_from(struct block_iter *dest, struct block_iter *src)
|
||||
|
Reference in New Issue
Block a user