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

Coverity analysis defect 103532: Uninitialized scalar variable

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.0.0-rc0
    • Affects Version/s: None
    • Component/s: Sharding
    • Labels:
    • Fully Compatible
    • ALL

      Use of an uninitialized variable

      Defect 103532 (STATIC_C)
      Checker UNINIT (subcategory none)
      File: /src/mongo/s/catalog_cache.cpp
      Function mongo::CatalogCache::_getCollectionRoutingInfoAt(mongo::OperationContext *, const mongo::NamespaceString &, boost::optional<mongo::Timestamp>)
      /src/mongo/s/catalog_cache.cpp, line: 214
      Declaring variable "refreshActionTaken" without initializer.

              CollectionRoutingInfoRefreshAction refreshActionTaken;
      

      /src/mongo/s/catalog_cache.cpp, line: 277
      Using uninitialized value "refreshActionTaken".

                  return {CachedCollectionRoutingInfo(nss, dbInfo, std::move(cm)), refreshActionTaken};
      

            Assignee:
            matthew.saltz@mongodb.com Matthew Saltz (Inactive)
            Reporter:
            xgen-internal-coverity Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: