[SERVER-35428] Add the ability to add two OpDebug objects together Created: 05/Jun/18  Updated: 29/Oct/23  Resolved: 03/Jul/18

Status: Closed
Project: Core Server
Component/s: Diagnostics, Replication
Affects Version/s: None
Fix Version/s: 4.0.2, 4.1.1

Type: Task Priority: Major - P3
Reporter: William Schultz (Inactive) Assignee: Jinny Byun
Resolution: Fixed Votes: 0
Labels: per-txn-metrics
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Depends
is depended on by SERVER-35434 Track aggregate OpDebug stats in Sing... Closed
Backwards Compatibility: Fully Compatible
Backport Requested:
v4.0
Sprint: Repl 2018-07-02
Participants:

 Description   

To support the use of the OpDebug structure for tracking aggregate statistics inside transaction, we need a way to add together one OpDebug object to another. We should be able to do this by adding a OpDebug::add method that accepts an OpDebug object, and adds together any applicable fields for each object. Some fields that are not numeric in nature should not be added together, and should likely just retain the value of the original OpDebug object (the non-argument object).



 Comments   
Comment by Githook User [ 15/Aug/18 ]

Author:

{'username': 'jinichu', 'email': 'jinnybyun@gmail.com', 'name': 'jinichu'}

Message: SERVER-35428 Added ability to add two OpDebug objects together

(cherry picked from commit 4ce2c25a29ca1442ae3f81777d8251cf5368ee22)
Branch: v4.0
https://github.com/mongodb/mongo/commit/f8d12ffa2259f788259c1c501a9fc85ec5d5f1e0

Comment by Githook User [ 03/Jul/18 ]

Author:

{'username': 'jinichu', 'name': 'jinichu', 'email': 'jinnybyun@gmail.com'}

Message: SERVER-35428 Added ability to add two OpDebug objects together
Branch: master
https://github.com/mongodb/mongo/commit/4ce2c25a29ca1442ae3f81777d8251cf5368ee22

Generated at Thu Feb 08 04:39:47 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.