-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Table scan cleanup #9156
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
Table scan cleanup #9156
Conversation
✅ Deploy Preview for meta-velox canceled.
|
|
@xiaoxmeng has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
|
|
||
| // Process-wide IO wait time. | ||
| static std::atomic<uint64_t> ioWaitNanos_; | ||
| inline static std::atomic<uint64_t> ioWaitNanos_; |
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.
Maybe move this into a global variable in cpp file only
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.
There is a static method that report this which is now only used by test but could be used by production later so keep it here.
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.
Will the inline here create multiple instances and the value is no longer process-wide?
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.
It is static so it should be singleton, and used it in many places.
|
@xiaoxmeng has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
kevinwilfong
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.
LGTM, thanks!
| preload(connectorSplit); | ||
| } else if ( | ||
| readySplitIndex == -1 && connectorSplit->dataSource->hasValue()) { | ||
| (readySplitIndex == -1) && (connectorSplit->dataSource->hasValue())) { |
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.
nit: are the additional parentheses necessary? IMO they make it less readable (but that's just an opinion)
|
@xiaoxmeng merged this pull request in 5e07790. |
Summary: Pull Request resolved: facebookincubator#9156 Reviewed By: kevinwilfong Differential Revision: D55086413 Pulled By: xiaoxmeng fbshipit-source-id: 60c557f7635e7eb498e17e46f1a15534d862b8bf
No description provided.