-
Notifications
You must be signed in to change notification settings - Fork 304
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
HPCC-32741 Refactor code to work towards a Thor generic disk activity #19165
Conversation
Jira Issue: https://hpccsystems.atlassian.net//browse/HPCC-32741 Jirabot Action Result: |
@jakesmith feel free to discuss each change. They are separate commits to clarify the steps taken, but will be squashed before merging (if you accept them) |
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.
@ghalliday - looks good, 2 trivial comments.
common/thorhelper/thorcommon.cpp
Outdated
{ | ||
while (true) | ||
{ | ||
++progress; | ||
if (checkEmptyRow()) | ||
{ | ||
size = 0; | ||
return nullptr; |
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.
trivial: clearer if break; and fell through to common ending that does same? [as if (checkExitConditions()) does]
common/thorhelper/thorcommon.cpp
Outdated
@@ -1248,7 +1255,10 @@ class CRowStreamReader : public CSimpleInterfaceOf<IExtRowStream> | |||
|
|||
virtual void stop() override | |||
{ | |||
stop(NULL); | |||
if (!eos) { |
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.
trivial/style: rest of class is not using this k&r style.
Signed-off-by: Gavin Halliday <[email protected]>
@jakesmith I have made the two you changes you suggested, squashed, and updatd the commit message. |
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.
@ghalliday - looks good.
Type of change:
Checklist:
Smoketest:
Testing: