[SERVER-28862] Coverity analysis defect 100778: Thread deadlock Created: 19/Apr/17  Updated: 29/Jan/18  Resolved: 19/Jul/17

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

Type: Bug Priority: Major - P3
Reporter: Coverity Collector User Assignee: William Schultz (Inactive)
Resolution: Duplicate Votes: 0
Labels: coverity
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
duplicates SERVER-28860 Coverity analysis defect 100781: Thre... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Repl 2017-07-31
Participants:

 Description   

Threads may try to acquire two locks in different orders, potentially causing deadlock

Defect 100778 (STATIC_C)
Checker ORDER_REVERSAL (subcategory none)
File: /src/mongo/db/repl/database_cloner.cpp
Function mongo::repl::DatabaseCloner::_listCollectionsCallback(const mongo::StatusWith<mongo::Fetcher::QueryResponse> &, mongo::Fetcher::NextAction *, mongo::BSONObjBuilder *)

File: /src/mongo/db/repl/database_cloner.cpp
Function mongo::repl::DatabaseCloner::_listCollectionsCallback(const mongo::StatusWith<mongo::Fetcher::QueryResponse> &, mongo::Fetcher::NextAction *, mongo::BSONObjBuilder *)

File: /src/mongo/db/repl/database_cloner.cpp
Function mongo::repl::DatabaseCloner::_listCollectionsCallback(const mongo::StatusWith<mongo::Fetcher::QueryResponse> &, mongo::Fetcher::NextAction *, mongo::BSONObjBuilder *)

File: /src/mongo/db/repl/database_cloner.cpp
Function mongo::repl::DatabaseCloner::_listCollectionsCallback(const mongo::StatusWith<mongo::Fetcher::QueryResponse> &, mongo::Fetcher::NextAction *, mongo::BSONObjBuilder *)

File: /src/mongo/db/repl/database_cloner.cpp
Function mongo::repl::DatabaseCloner::_listCollectionsCallback(const mongo::StatusWith<mongo::Fetcher::QueryResponse> &, mongo::Fetcher::NextAction *, mongo::BSONObjBuilder *)

File: /src/mongo/db/repl/database_cloner.cpp
Function mongo::repl::DatabaseCloner::_listCollectionsCallback(const mongo::StatusWith<mongo::Fetcher::QueryResponse> &, mongo::Fetcher::NextAction *, mongo::BSONObjBuilder *)

File: /src/mongo/db/repl/database_cloner.cpp
Function mongo::repl::DatabaseCloner::_listCollectionsCallback(const mongo::StatusWith<mongo::Fetcher::QueryResponse> &, mongo::Fetcher::NextAction *, mongo::BSONObjBuilder *)


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