[SERVER-35961] Remove uninitialized count variable in MapReduce command Created: 05/Jul/18  Updated: 29/Oct/23  Resolved: 10/Jul/18

Status: Closed
Project: Core Server
Component/s: MapReduce
Affects Version/s: None
Fix Version/s: 3.6.7, 4.0.1, 4.1.1

Type: Bug Priority: Minor - P4
Reporter: Benjamin Caimano (Inactive) Assignee: Benjamin Caimano (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v4.0, v3.6
Steps To Reproduce:

Run a mapReduce_*.js test with a windows debug build.

Sprint: Platforms 2018-07-16
Participants:

 Description   

Turns out there's an uninitialized count variable. It causes an exception ala _RTC_UninitUse for windows debug builds.



 Comments   
Comment by Githook User [ 19/Jul/18 ]

Author:

{'name': 'Ben Caimano', 'email': 'ben.caimano@10gen.com'}

Message: SERVER-35961 Remove unitialized count variable in MapReduce command

(cherry picked from commit 173ac70346990e4cf9b2720f86697785b8795967)
Branch: v3.6
https://github.com/mongodb/mongo/commit/1467f70eb7c87be43e916b394ff3a96d223d45d8

Comment by Githook User [ 19/Jul/18 ]

Author:

{'name': 'Ben Caimano', 'email': 'ben.caimano@10gen.com'}

Message: SERVER-35961 Remove unitialized count variable in MapReduce command

(cherry picked from commit 173ac70346990e4cf9b2720f86697785b8795967)
Branch: v4.0
https://github.com/mongodb/mongo/commit/762e505dd993aae5163f89104055cf72a406a3f8

Comment by Esha Maharishi (Inactive) [ 11/Jul/18 ]

I agree we should do the backports   ben.caimano, thanks for finding this and fixing it.

Comment by Benjamin Caimano (Inactive) [ 10/Jul/18 ]

Adding relevant backports since acm felt it was worthwhile.

Comment by Gregory McKeon (Inactive) [ 09/Jul/18 ]

ben.caimano can we close this? Does this need a backport?

Comment by Githook User [ 05/Jul/18 ]

Author:

{'name': 'Ben Caimano', 'email': 'ben.caimano@10gen.com'}

Message: SERVER-35961 Remove unitialized count variable in MapReduce command
Branch: master
https://github.com/mongodb/mongo/commit/173ac70346990e4cf9b2720f86697785b8795967

Comment by Benjamin Caimano (Inactive) [ 05/Jul/18 ]

Code review

Comment by Benjamin Caimano (Inactive) [ 05/Jul/18 ]

See this line.

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