-
Type: Bug
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: Sharding
-
Labels:
-
Fully Compatible
-
ALL
-
Sharding 2018-11-05
A scalar field is not initialized by the constructor
Defect 105086 (STATIC_C)
Checker UNINIT_CTOR (subcategory none)
File: /src/mongo/s/client/shard_connection.cpp
Function mongo::ShardConnection::ShardConnection(mongo::OperationContext *, const mongo::ConnectionString &, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> &, std::shared_ptr<mongo::ChunkManager>)
/src/mongo/s/client/shard_connection.h, line: 147
Class member declaration for "_setVersion".
bool _setVersion;
/src/mongo/s/client/shard_connection.cpp, line: 402
Non-static class member "_setVersion" is not initialized in this constructor nor in any functions that it calls.
}