Skip to content

Conversation

Vegetable26
Copy link

The eviction queue expects the lambda to return true to continue and false to exit:

if (!fn(node, handle)) {

return is_fresh;
unfortunately we are returning true when is_fresh. This PR fixes this.

@Vegetable26 Vegetable26 changed the title [bufferpool] Fix PurgeAgedBlocksInternal() logic [bufferpool] Fix PurgeAgedBlocksInternal() evictions Oct 18, 2024
@Mytherin
Copy link
Collaborator

Thanks for the PR! LGTM - can you just run the formatter?

@duckdb-draftbot duckdb-draftbot marked this pull request as draft October 22, 2024 13:04
@Vegetable26 Vegetable26 marked this pull request as ready for review October 22, 2024 13:07
@Vegetable26
Copy link
Author

I submitted a fix with the formatter - but am now seeing a test failure that looks probably unrelated (Julia 1.7). Curious if it'd be possible to get another round of review? Thanks! @Mytherin

@Mytherin Mytherin merged commit 3293c92 into duckdb:main Oct 29, 2024
42 of 43 checks passed
@Mytherin
Copy link
Collaborator

Thanks!

github-actions bot pushed a commit to duckdb/duckdb-r that referenced this pull request Nov 2, 2024
[bufferpool] Fix PurgeAgedBlocksInternal() evictions (duckdb/duckdb#14446)
HTTPFS: HTTPException no longer inherits from IOException (duckdb/duckdb#14585)
github-actions bot added a commit to duckdb/duckdb-r that referenced this pull request Nov 2, 2024
[bufferpool] Fix PurgeAgedBlocksInternal() evictions (duckdb/duckdb#14446)
HTTPFS: HTTPException no longer inherits from IOException (duckdb/duckdb#14585)

Co-authored-by: krlmlr <krlmlr@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants