-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Add release callbacks to QueryCtx #15858
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Add release callbacks to QueryCtx #15858
Conversation
Summary: Add ability to provide callbacks to be executed before QueryCtx is destructed Differential Revision: D89797291
✅ Deploy Preview for meta-velox canceled.
|
|
@shrinidhijoshi has exported this pull request. If you are a Meta employee, you can view the originating Diff in D89797291. |
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
Summary: Add ability to provide callbacks to be executed before QueryCtx is destructed Differential Revision: D89797291
xiaoxmeng
left a comment
There was a problem hiding this 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) { |
There was a problem hiding this comment.
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(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Move dtor after ctor
Summary: Add ability to provide callbacks to be executed before QueryCtx is destructed Reviewed By: xiaoxmeng Differential Revision: D89797291
Summary: Add ability to provide callbacks to be executed before QueryCtx is destructed Reviewed By: xiaoxmeng Differential Revision: D89797291
Summary: Add ability to provide callbacks to be executed before QueryCtx is destructed
Differential Revision: D89797291