[SERVER-8763] Add decrement to Counter64 Created: 27/Feb/13  Updated: 11/Jul/16  Resolved: 01/Mar/13

Status: Closed
Project: Core Server
Component/s: Internal Code
Affects Version/s: 2.4.0-rc1
Fix Version/s: 2.4.0-rc2

Type: Bug Priority: Major - P3
Reporter: Scott Hernandez (Inactive) Assignee: Scott Hernandez (Inactive)
Resolution: Done Votes: 0
Labels: counters
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Operating System: ALL
Participants:

 Description   

Right now there is a unsigned/sign-extend issue in the use of counter.increment(-num) on 32bit platforms.

We should add decrement and use the underlying subtractAndFetch with the incoming unsigned value.



 Comments   
Comment by auto [ 01/Mar/13 ]

Author:

{u'date': u'2013-03-01T18:45:38Z', u'name': u'Scott Hernandez', u'email': u'scotthernandez@gmail.com'}

Message: SERVER-8763: Add decrement to Counter64
Branch: master
https://github.com/mongodb/mongo/commit/58203415c1971faba57ab2488b9b14d3374e9103

Generated at Thu Feb 08 03:18:23 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.