Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-43735

Clang-tidy error in process_interface_standalone.cpp

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 4.3.1
    • None
    • Testing Infrastructure
    • None
    • Fully Compatible
    • ALL
    • Execution Team 2019-10-07
    • 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
      

      Attachments

        Activity

          People

            daniel.gottlieb@mongodb.com Daniel Gottlieb (Inactive)
            suganthi.mani@mongodb.com Suganthi Mani
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: