diff options
author | uzhas <uzhas@ydb.tech> | 2023-11-07 14:06:39 +0300 |
---|---|---|
committer | uzhas <uzhas@ydb.tech> | 2023-11-07 14:49:49 +0300 |
commit | 9995aa84f4c2c2a78edb5c0d2c853d08556558b7 (patch) | |
tree | 009f1a11eb60aee003f54b3fd52ff132f4f27a8b | |
parent | c931eaf466c31e7bd4394a3a2a0d9225978ad381 (diff) | |
download | ydb-9995aa84f4c2c2a78edb5c0d2c853d08556558b7.tar.gz |
fix several coverity issues about uninit var
-rw-r--r-- | ydb/core/base/appdata_fwd.h | 2 | ||||
-rw-r--r-- | ydb/core/base/board_lookup.cpp | 1 | ||||
-rw-r--r-- | ydb/core/base/statestorage_monitoring.cpp | 1 | ||||
-rw-r--r-- | ydb/core/blobstorage/vdisk/common/vdisk_events.h | 2 | ||||
-rw-r--r-- | ydb/core/keyvalue/keyvalue_intermediate.cpp | 2 | ||||
-rw-r--r-- | ydb/core/keyvalue/keyvalue_state.h | 2 | ||||
-rw-r--r-- | ydb/core/tx/datashard/export_s3_buffer_zstd.cpp | 1 |
7 files changed, 8 insertions, 3 deletions
diff --git a/ydb/core/base/appdata_fwd.h b/ydb/core/base/appdata_fwd.h index 701d02159e..85dc3ccbb3 100644 --- a/ydb/core/base/appdata_fwd.h +++ b/ydb/core/base/appdata_fwd.h @@ -152,7 +152,7 @@ struct TAppData { NHttpProxy::IAuthFactory* DataStreamsAuthFactory = nullptr; - NActors::IActor*(*FolderServiceFactory)(const NKikimrProto::NFolderService::TFolderServiceConfig&); + NActors::IActor*(*FolderServiceFactory)(const NKikimrProto::NFolderService::TFolderServiceConfig&) = nullptr; const NMsgBusProxy::IPersQueueGetReadSessionsInfoWorkerFactory* PersQueueGetReadSessionsInfoWorkerFactory = nullptr; const NPQ::IPersQueueMirrorReaderFactory* PersQueueMirrorReaderFactory = nullptr; diff --git a/ydb/core/base/board_lookup.cpp b/ydb/core/base/board_lookup.cpp index 113e80b7f5..14d4eae229 100644 --- a/ydb/core/base/board_lookup.cpp +++ b/ydb/core/base/board_lookup.cpp @@ -502,6 +502,7 @@ public: , StateStorageGroupId(groupId) , Subscriber(Mode == EBoardLookupMode::Subscription) , BoardRetrySettings(std::move(boardRetrySettings)) + , WaitForReplicasToSuccess(0) {} void Bootstrap() { diff --git a/ydb/core/base/statestorage_monitoring.cpp b/ydb/core/base/statestorage_monitoring.cpp index c23dddb7a6..4d06bdd3fe 100644 --- a/ydb/core/base/statestorage_monitoring.cpp +++ b/ydb/core/base/statestorage_monitoring.cpp @@ -208,6 +208,7 @@ public: , Query(query) , ProxyReplyTime(TDuration::MicroSeconds(Max<ui64>())) , WaitingForReplicas(0) + , SelfConfigContentHash(0) {} void Bootstrap(const TActorContext &ctx) { diff --git a/ydb/core/blobstorage/vdisk/common/vdisk_events.h b/ydb/core/blobstorage/vdisk/common/vdisk_events.h index cf4749748c..2b5de0bc70 100644 --- a/ydb/core/blobstorage/vdisk/common/vdisk_events.h +++ b/ydb/core/blobstorage/vdisk/common/vdisk_events.h @@ -437,7 +437,7 @@ namespace NKikimr { private: const TInstant Start; - ui64 Size; + ui64 Size = 0; ::NMonitoring::TDynamicCounters::TCounterPtr CounterPtr; NVDiskMon::TLtcHistoPtr HistoPtr; bool Finalized = false; diff --git a/ydb/core/keyvalue/keyvalue_intermediate.cpp b/ydb/core/keyvalue/keyvalue_intermediate.cpp index ca12464884..3f735def92 100644 --- a/ydb/core/keyvalue/keyvalue_intermediate.cpp +++ b/ydb/core/keyvalue/keyvalue_intermediate.cpp @@ -11,6 +11,7 @@ TIntermediate::TRead::TRead() , ValueSize(0) , CreationUnixTime(0) , StorageChannel(NKikimrClient::TKeyValueRequest::MAIN) + , HandleClass(NKikimrBlobStorage::AsyncRead) , Status(NKikimrProto::UNKNOWN) {} @@ -22,6 +23,7 @@ TIntermediate::TRead::TRead(const TString &key, ui32 valueSize, ui64 creationUni , ValueSize(valueSize) , CreationUnixTime(creationUnixTime) , StorageChannel(storageChannel) + , HandleClass(NKikimrBlobStorage::AsyncRead) , Status(NKikimrProto::UNKNOWN) {} diff --git a/ydb/core/keyvalue/keyvalue_state.h b/ydb/core/keyvalue/keyvalue_state.h index d1771f16b7..bae2891c7d 100644 --- a/ydb/core/keyvalue/keyvalue_state.h +++ b/ydb/core/keyvalue/keyvalue_state.h @@ -263,7 +263,7 @@ protected: ui32 PerGenerationCounter; // for garbage collection - NMetrics::TResourceMetrics* ResourceMetrics; + NMetrics::TResourceMetrics* ResourceMetrics = nullptr; TMaybe<NKeyValue::THelpers::TGenerationStep> PartialCollectedGenerationStep; TVector<TLogoBlobID> PartialCollectedDoNotKeep; diff --git a/ydb/core/tx/datashard/export_s3_buffer_zstd.cpp b/ydb/core/tx/datashard/export_s3_buffer_zstd.cpp index 3ebc69df60..7588d3b7a5 100644 --- a/ydb/core/tx/datashard/export_s3_buffer_zstd.cpp +++ b/ydb/core/tx/datashard/export_s3_buffer_zstd.cpp @@ -54,6 +54,7 @@ public: , CompressionLevel(compressionLevel) , MinBytes(minBytes) , Context(ZSTD_createCCtx()) + , ErrorCode(0) , BytesRaw(0) { Reset(); |