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

Coverity analysis defect 99581: UNUSED_VALUE

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 3.3.10
    • Affects Version/s: None
    • Component/s: Networking
    • Labels:
      None
    • Fully Compatible
    • ALL
    • Platforms 17 (07/15/16)

      UNUSED_VALUE

      Defect 99581 (STATIC_C)
      Checker UNUSED_VALUE (subcategory adjacent)
      File: /src/mongo/transport/session.cpp
      Function mongo::transport::Session::operator =(mongo::transport::Session&&)
      /src/mongo/transport/session.cpp, line: 69
      Overwriting previous write to "this->_tl" with value "NULL".

              _tl = nullptr;
      

      /src/mongo/transport/session.cpp, line: 68
      Assigning value from "other._tl" to "this->_tl" here, but that stored value is overwritten before it can be used.

              _tl = other._tl;
      

            Assignee:
            waley.chen Waley Chen
            Reporter:
            xgen-internal-coverity Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: