[SERVER-84557] Initialize Summation in aggregated_metric.h with initial zero value. Created: 04/Jan/24  Updated: 09/Jan/24  Resolved: 09/Jan/24

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 7.3.0-rc0

Type: Improvement Priority: Major - P3
Reporter: Santiago Roche Assignee: Santiago Roche
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Participants:

 Description   

In AggregatedMetric (see aggregated_metric.h), when the Summation<T> defaults to a the underlying POD type summation (not DoubleDum case), the Summation objects are default initialized without a 0 value. Provide zero initialization for these summations.



 Comments   
Comment by Githook User [ 09/Jan/24 ]

Author:

{'name': 'Santiago Roche', 'email': '69868136+sroches@users.noreply.github.com', 'username': 'sroches'}

Message: SERVER-84557: Provide default initialization to Summation. (#17870)

GitOrigin-RevId: 8dc0cb7a249c0ad8dc818a2a088edd79403f1f6d
Branch: master
https://github.com/mongodb/mongo/commit/f66e6142977c257e262e4e967dab4157debf7b94

Generated at Thu Feb 08 06:55:21 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.