[SERVER-59185] std::shared_mutex and boost::shared_mutex are disallowed but no stdx:: exists Created: 09/Aug/21  Updated: 06/Dec/22  Resolved: 17/Aug/21

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

Type: Bug Priority: Major - P3
Reporter: Matthew Russotto Assignee: Backlog - Service Architecture
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
duplicates SERVER-59157 Add support for a shared-mutex type Backlog
Related
related to SERVER-59411 Complete TODO listed in SERVER-59185 Closed
Assigned Teams:
Service Arch
Operating System: ALL
Participants:

 Description   

Lint complains that std::shared_lock (and boost::shared_lock) should not be used, in favor of stdx::shared_lock:

Error: src/mongo/db/storage/storage_engine_change_context.h:54 - mongodb/polyfill - Illegal use of banned name from std::/boost:: for "std::shared_lock", use mongo::stdx:: variant instead

But there is no stdx::shared_lock
In file included from src/mongo/db/storage/storage_engine_init.cpp:45:
src/mongo/db/storage/storage_engine_change_context.h:76:22: error: no member named 'shared_lock' in namespace 'mongo::stdx'
return stdx::shared_lock(_storageChangeSpinlock);



 Comments   
Comment by Githook User [ 01/Sep/21 ]

Author:

{'name': 'Amirsaman Memaripour', 'email': 'amirsaman.memaripour@mongodb.com', 'username': 'samanca'}

Message: SERVER-59411 Update TODO listed in SERVER-59185
Branch: master
https://github.com/mongodb/mongo/commit/d86f0f98c6b97cac061f449878c14b280376194f

Generated at Thu Feb 08 05:46:35 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.