Skip to content

Conversation

ywelsch
Copy link
Contributor

@ywelsch ywelsch commented Feb 27, 2025

This allows extensions to do further instrumentation around tasks, e.g. install a custom thread context.

@@ -247,7 +247,7 @@ void AttachedDatabase::Close() {
}
CheckpointOptions options;
options.wal_action = CheckpointWALAction::DELETE_WAL;
storage->CreateCheckpoint(options);
storage->CreateCheckpoint(nullptr, options);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the only place where we're missing out on a ClientContext, which I think is fine though.

@duckdb-draftbot duckdb-draftbot marked this pull request as draft February 28, 2025 08:29
@ywelsch ywelsch marked this pull request as ready for review February 28, 2025 08:29
Copy link
Collaborator

@Mytherin Mytherin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR! LGTM - could you just look at the CI failure?

@duckdb-draftbot duckdb-draftbot marked this pull request as draft March 3, 2025 12:39
@ywelsch ywelsch marked this pull request as ready for review March 3, 2025 12:56
@ywelsch
Copy link
Contributor Author

ywelsch commented Mar 3, 2025

Thanks, fixed :)

@Mytherin Mytherin merged commit ef253ee into duckdb:v1.2-histrionicus Mar 4, 2025
50 checks passed
@Mytherin
Copy link
Collaborator

Mytherin commented Mar 4, 2025

Thanks!

krlmlr added a commit to duckdb/duckdb-r that referenced this pull request Mar 7, 2025
Provide callback when tasks are starting / stopping (duckdb/duckdb#16451)
[tests] Add allow_unsigned_extensions require (duckdb/duckdb#16499)
Mytherin added a commit that referenced this pull request Apr 8, 2025
Follow-up to #16451 that fixes the
situation where checkpoint / vacuum tasks would not be correctly
identified as belonging to a given query / transaction because the
ClientContext wasn't correctly set.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants