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

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

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Minor - P4 Minor - P4
    • 5.0.4, 5.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Fully Compatible
    • v5.0
    • Sharding 2021-09-20
    • 1

      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

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

              Created:
              Updated:
              Resolved: