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

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Fixed
    • Priority: 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
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      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
            Reporter:
            Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: