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

Coverity analysis defect 103494: Self assignment

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.0.0-rc0
    • Component/s: Internal Code
    • Labels:

      Description

      Assignment of a variable or expression to itself has no effect

      Defect 103494 (STATIC_C)
      Checker NO_EFFECT (subcategory self_assign)
      File: /src/mongo/db/free_mon/free_mon_processor.cpp
      Function mongo::RegistrationRetryCounter::incrementError()
      /src/mongo/db/free_mon/free_mon_processor.cpp, line: 83
      Assigning "this->_base" to itself has no effect.

                  _base = _base;

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: