clang-tidy error in fetcher_test.cpp

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 4.3.1
    • Affects Version/s: None
    • Component/s: Testing Infrastructure
    • None
    • Fully Compatible
    • ALL
    • Execution Team 2019-10-07
    • 50
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      [2019/09/27 14:52:31.512] /data/mci/f7b2a6acdc3d01ded6cc8f0f20c1760d/src/src/mongo/client/fetcher_test.cpp:256: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]     Fetcher(&executor,
       [2019/09/27 14:52:31.512]     ^      ~
       [2019/09/27 14:52:31.512]             give_me_a_name
       [2019/09/27 14:52:31.512] /data/mci/f7b2a6acdc3d01ded6cc8f0f20c1760d/src/src/mongo/client/fetcher_test.cpp:262: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]     Fetcher(&executor, source, "db", BSON("listCollections" << 1), unreachableCallback);
       [2019/09/27 14:52:31.512]     ^      ~
       [2019/09/27 14:52:31.512]             give_me_a_name
      

            Assignee:
            Daniel Gottlieb (Inactive)
            Reporter:
            Suganthi Mani
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: