Skip to content

Conversation

@shrinidhijoshi
Copy link

Summary: Add ability to provide callbacks to be executed before QueryCtx is destructed

Differential Revision: D89797291

Summary: Add ability to provide callbacks to be executed before QueryCtx is destructed

Differential Revision: D89797291
@netlify
Copy link

netlify bot commented Dec 26, 2025

Deploy Preview for meta-velox canceled.

Name Link
🔨 Latest commit 4c6ec31
🔍 Latest deploy log https://app.netlify.com/projects/meta-velox/deploys/694dea4b0ddf470008ed599e

@meta-cla meta-cla bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Dec 26, 2025
@meta-codesync
Copy link

meta-codesync bot commented Dec 26, 2025

@shrinidhijoshi has exported this pull request. If you are a Meta employee, you can view the originating Diff in D89797291.

shrinidhijoshi added a commit to shrinidhijoshi/velox that referenced this pull request Dec 26, 2025
Summary:

Add ability to provide callbacks to be executed before QueryCtx is destructed

Differential Revision: D89797291
shrinidhijoshi added a commit to shrinidhijoshi/velox that referenced this pull request Dec 26, 2025
Summary:

Add ability to provide callbacks to be executed before QueryCtx is destructed

Differential Revision: D89797291
shrinidhijoshi added a commit to shrinidhijoshi/velox that referenced this pull request Dec 26, 2025
Summary:

Add ability to provide callbacks to be executed before QueryCtx is destructed

Differential Revision: D89797291
Copy link
Contributor

@xiaoxmeng xiaoxmeng left a comment

Choose a reason for hiding this comment

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

@shrinidhijoshi LGTM % minors. Thanks!

using ReleaseCallback = std::function<void()>;

~QueryCtx();
void addReleaseCallback(ReleaseCallback callback) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Put this ahead of fsTokenProvider

VELOX_CHECK(!underArbitration_);
using ReleaseCallback = std::function<void()>;

~QueryCtx();
Copy link
Contributor

Choose a reason for hiding this comment

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

Move dtor after ctor

shrinidhijoshi added a commit to shrinidhijoshi/velox that referenced this pull request Dec 26, 2025
Summary:

Add ability to provide callbacks to be executed before QueryCtx is destructed

Reviewed By: xiaoxmeng

Differential Revision: D89797291
shrinidhijoshi added a commit to shrinidhijoshi/velox that referenced this pull request Dec 26, 2025
Summary:

Add ability to provide callbacks to be executed before QueryCtx is destructed

Reviewed By: xiaoxmeng

Differential Revision: D89797291
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported meta-exported

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants