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

Coverity analysis defect 103536: Uninitialized scalar variable

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.0.0-rc0
    • Component/s: Sharding
    • Labels:
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL

      Description

      Use of an uninitialized variable

      Defect 103536 (STATIC_C)
      Checker UNINIT (subcategory none)
      File: /src/mongo/s/catalog_cache.cpp
      Function mongo::CatalogCache::_getDatabase(mongo::OperationContext *, mongo::StringData)
      /src/mongo/s/catalog_cache.cpp, line: 131
      Declaring variable "refreshActionTaken" without initializer.

              DatabaseInfoRefreshAction refreshActionTaken;

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

                      return {CachedDatabaseInfo(*dbEntry->dbt, std::move(primaryShard)), refreshActionTaken};

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: