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

Coverity analysis defect 118014: 'state' variable shadowed in checkState()

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed
    • Minor - P4
    • Resolution: Fixed
    • None
    • 5.0.4, 5.1.0-rc0
    • None
    • Fully Compatible
    • v5.0
    • Sharding 2021-09-20
    • 1

    Description

      Parse warning

      A parse warning may reduce maintainability of the code, or it may indicate a serious error. A parse warning from the Coverity parser may indicate a bug, or poor coding practice
      /src/mongo/db/s/resharding/resharding_metrics.cpp:181: PW.PARAMETER_HIDDEN 118014 declaration hides parameter "state" (declared at line 174)

      https://github.com/mongodb/mongo/blob/d1363de83fa77578720f71849780cedf083cee1b/src/mongo/db/s/resharding/resharding_metrics.cpp#L509

      Attachments

        Activity

          People

            brett.nawrocki@mongodb.com Brett Nawrocki
            xgen-internal-coverity Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: