[SERVER-43734] clang-tidy error in database_impl.cpp Created: 30/Sep/19  Updated: 01/Oct/19  Resolved: 01/Oct/19

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

Type: Bug Priority: Major - P3
Reporter: Suganthi Mani Assignee: Geert Bosch
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
depends on SERVER-43707 CollectionLock destroyed immediately ... Closed
Operating System: ALL
Participants:
Linked BF Score: 50

 Description   

 [2019/09/27 14:52:31.512] /data/mci/f7b2a6acdc3d01ded6cc8f0f20c1760d/src/src/mongo/db/catalog/database_impl.cpp:433:9: error: object destroyed immediately after creation; did you mean to name the object? [bugprone-unused-raii,-warnings-as-errors]
 [2019/09/27 14:52:31.512]         Lock::CollectionLock(opCtx, dpns, MODE_X);
 [2019/09/27 14:52:31.512]         ^                   ~
 [2019/09/27 14:52:31.512]                              give_me_a_name


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