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

clang-tidy error in database_impl.cpp

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Testing Infrastructure
    • Labels:
      None
    • ALL
    • 50

       [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
      

            Assignee:
            geert.bosch@mongodb.com Geert Bosch
            Reporter:
            suganthi.mani@mongodb.com Suganthi Mani
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: