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};