[SERVER-27920] Fix incorrect locking of Client context Created: 06/Feb/17  Updated: 05/Apr/17  Resolved: 06/Feb/17

Status: Closed
Project: Core Server
Component/s: Concurrency
Affects Version/s: None
Fix Version/s: 3.2.13, 3.4.3, 3.5.3

Type: Bug Priority: Major - P3
Reporter: Geert Bosch Assignee: Geert Bosch
Resolution: Done Votes: 0
Labels: bkp
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Depends
is depended on by SERVER-27897 Remove uses of temporary RAII objects Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v3.4, v3.2, v3.0
Sprint: Storage 2017-02-13
Participants:
Linked BF Score: 25

 Description   

In some cases we didn't specify a variable name for a stdx::lock_guard, making the lifetime of the lock too short.



 Comments   
Comment by Githook User [ 09/Mar/17 ]

Author:

{u'username': u'GeertBosch', u'name': u'Geert Bosch', u'email': u'geert@mongodb.com'}

Message: SERVER-27920 Fix incorrect locking of Client context

(cherry picked from commit ddc34321a7b0019612ee2c093e84cb01b489dd79)

Conflicts:
src/mongo/db/assemble_response.cpp
src/mongo/db/commands/distinct.cpp
src/mongo/db/commands/find_and_modify.cpp
src/mongo/db/commands/find_cmd.cpp
src/mongo/db/commands/geo_near_cmd.cpp
src/mongo/db/commands/getmore_cmd.cpp
src/mongo/db/commands/group_cmd.cpp
src/mongo/db/commands/killcursors_cmd.cpp
src/mongo/db/commands/mr.cpp
src/mongo/db/commands/pipeline_command.cpp
src/mongo/db/ops/write_ops_exec.cpp
src/mongo/db/query/find.cpp

Three additional fixed occurences were in:
src/mongo/db/instance.cpp
src/mongo/db/query/find.cpp
Branch: v3.2
https://github.com/mongodb/mongo/commit/a4cf278d7be77b8be4165ce4124609802c79610f

Comment by Githook User [ 03/Mar/17 ]

Author:

{u'username': u'GeertBosch', u'name': u'Geert Bosch', u'email': u'geert@mongodb.com'}

Message: SERVER-27920 Fix incorrect locking of Client context

(cherry picked from commit ddc34321a7b0019612ee2c093e84cb01b489dd79)

Corrected one additional occurrence in in instance.cpp.

Conflicts:
src/mongo/db/assemble_response.cpp
Branch: v3.4
https://github.com/mongodb/mongo/commit/b632f0ad5b232aaadd7b9fdf84409d2fbcc1079d

Comment by Githook User [ 06/Feb/17 ]

Author:

{u'username': u'GeertBosch', u'name': u'Geert Bosch', u'email': u'geert@mongodb.com'}

Message: SERVER-27920 Fix incorrect locking of Client context
Branch: master
https://github.com/mongodb/mongo/commit/ddc34321a7b0019612ee2c093e84cb01b489dd79

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