Skip to content

Commit

Permalink
Merge pull request hpcc-systems#18730 from ghalliday/issue32001
Browse files Browse the repository at this point in the history
HPCC-32001 Fix uninitialised variables in the new cache metrics

Reviewed-by: Jake Smith <[email protected]>
Merged-by: Gavin Halliday <[email protected]>
  • Loading branch information
ghalliday authored Jun 7, 2024
2 parents a5892dd + 9eb6e4a commit 6d078a4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions system/jhtree/jhtree.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -674,10 +674,10 @@ class CNodeMRUCache final : public CMRUCacheOf<CKeyIdAndPos, CNodeCacheEntry, CN
std::shared_ptr<hpccMetrics::CustomMetric<RelaxedAtomic<__uint64>>> pNumDups = nullptr;
std::shared_ptr<hpccMetrics::CustomMetric<RelaxedAtomic<__uint64>>> pNumEvicts = nullptr;
public:
RelaxedAtomic<__uint64> numHits;
RelaxedAtomic<__uint64> numAdds;
RelaxedAtomic<__uint64> numDups;
RelaxedAtomic<__uint64> numEvicts;
RelaxedAtomic<__uint64> numHits{0};
RelaxedAtomic<__uint64> numAdds{0};
RelaxedAtomic<__uint64> numDups{0};
RelaxedAtomic<__uint64> numEvicts{0};
bool enabled = false;
CNodeMRUCache(CacheType cacheType)
{
Expand Down

0 comments on commit 6d078a4

Please sign in to comment.