[SERVER-39655] Statistics retrieval from WiredTiger uses wrong type Created: 19/Feb/19  Updated: 29/Oct/23  Resolved: 08/Mar/19

Status: Closed
Project: Core Server
Component/s: Storage
Affects Version/s: None
Fix Version/s: 4.1.9

Type: Bug Priority: Trivial - P5
Reporter: Alexander Gorrod Assignee: Divjot Arora (Inactive)
Resolution: Fixed Votes: 0
Labels: neweng
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Storage NYC 2019-03-11
Participants:
Story Points: 1

 Description   

The WiredTigerOperationStats::fetchStats method uses a uint32_t when retrieving statistics from WiredTiger, but the actual statistics are signed values, we should switch to an int32_t.

This is follow on from SERVER-39026, and the code change should be similar.



 Comments   
Comment by Githook User [ 08/Mar/19 ]

Author:

{'name': 'Divjot Arora', 'email': 'divjot.arora@10gen.com', 'username': 'divjotarora'}

Message: SERVER-39655 Change uint32_t to int32_t in fetchStats
Branch: master
https://github.com/mongodb/mongo/commit/3a8133621264cac3381c8233b79147c6a94fa4e9

Comment by Alexander Gorrod [ 19/Feb/19 ]

milkie FYI - this change is trivial, and shouldn't cause any actual problems, but is worth fixing in case the code gets copied around in the future. It's on the storage NY backlog at the moment - feel free to push to storage engines if that feels appropriate.

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