-
Notifications
You must be signed in to change notification settings - Fork 310
HPCC-35200: Make modeling of index event read times optional #20539
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: candidate-10.0.x
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -76,6 +76,9 @@ void Storage::configure(const IPropertyTree& config) | |||||
|
|
||||||
| void Storage::observeFile(__uint64 fileId, const char* path) | ||||||
| { | ||||||
| // don't observe files when no modeling is configured | ||||||
|
||||||
| // don't observe files when no modeling is configured | |
| // don't observe files when no storage planes are configured |
Copilot
AI
Oct 17, 2025
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.
The call to it->first() consumes the iterator position. This means the subsequent ForEach(*it) at line 158 will skip the first file element. The check should use it->isValid() after calling first() and then reset the iterator, or restructure to avoid consuming the iterator.
| if (it->first() && planes.empty()) | |
| if (it->isValid() && planes.empty()) |
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.
[nitpick] The change makes storage optional, but there's no corresponding update to handle the case where storage is present but empty (e.g.,
<storage/>). While the code may handle this throughplanes.empty()checks in Storage, it would be clearer to explicitly document this behavior or add a validation that an empty storage element is equivalent to omission.