[SERVER-43735] Clang-tidy error in process_interface_standalone.cpp Created: 30/Sep/19  Updated: 29/Oct/23  Resolved: 03/Oct/19

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

Type: Bug Priority: Major - P3
Reporter: Suganthi Mani Assignee: Daniel Gottlieb (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Execution Team 2019-10-07
Participants:
Linked BF Score: 50

 Description   

[2019/09/27 14:52:31.512] /data/mci/f7b2a6acdc3d01ded6cc8f0f20c1760d/src/src/mongo/db/pipeline/process_interface_standalone.cpp:352:5: 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::DBLock(opCtx, targetNs.db(), MODE_X);
 [2019/09/27 14:52:31.512]     ^           ~
 [2019/09/27 14:52:31.512]                  give_me_a_name



 Comments   
Comment by Githook User [ 03/Oct/19 ]

Author:

{'name': 'Daniel Gottlieb', 'username': 'dgottlieb', 'email': 'daniel.gottlieb@mongodb.com'}

Message: SERVER-43735: Remove bugprone-unused-raii in process_interface_standalone.cpp.

Up the clang-tidy timeout to 4 hours (a successful run took 2 hours 6 minutes).
Branch: master
https://github.com/mongodb/mongo/commit/fa6abdf05dd5237e20493527b7436c8b25af582c

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