From 36ea8b0d3121de182df18ecc573334cb01f7e6d9 Mon Sep 17 00:00:00 2001 From: "A. Jesse Jiryu Davis" Date: Mon, 14 Sep 2020 14:17:59 -0400 Subject: SERVER-50876 Initialize ReplSetMetadata::_isPrimary Fix Coverity "Uninitialized scalar field" warning. --- src/mongo/rpc/metadata/repl_set_metadata.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/mongo/rpc') diff --git a/src/mongo/rpc/metadata/repl_set_metadata.h b/src/mongo/rpc/metadata/repl_set_metadata.h index 6ac6f10abb1..9b85168da70 100644 --- a/src/mongo/rpc/metadata/repl_set_metadata.h +++ b/src/mongo/rpc/metadata/repl_set_metadata.h @@ -149,7 +149,7 @@ private: long long _configTerm = repl::OpTime::kUninitializedTerm; OID _replicaSetId; int _currentSyncSourceIndex = -1; - bool _isPrimary; + bool _isPrimary = false; }; } // namespace rpc -- cgit v1.2.1