-
Notifications
You must be signed in to change notification settings - Fork 301
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-20173 Variable to validate serial read needs to be offset_t #11492
Conversation
https://track.hpccsystems.com/browse/HPCC-20173 |
@mckellyln - please review |
common/remote/sockfile.cpp
Outdated
} | ||
virtual size32_t read(offset_t pos, size32_t len, void * data) override | ||
{ | ||
assertex(pos == bufPos); // Must read sequentially |
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.
Is this restriction no longer valid ?
If not then sure, remove all bufPos. If yes then make bufPos offset_t ?
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.
not used other than this [incorrect] assert.
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.
but I guess if correct, it does protect again misuse. i.e. ensures serial as it needs to be.
So yes I will put back and make a offset_t.
@jakesmith just one question |
Signed-off-by: Jake Smith <jake.smith@lexisnexisrisk.com>
@mckellyln - changed to offset_t |
Automated Smoketest: ✅ Unit tests result:
Regression test result:
HPCC Stop: OK
|
Signed-off-by: Jake Smith jake.smith@lexisnexisrisk.com
Type of change:
Checklist:
Testing: