Skip to content

Commit

Permalink
Fix disk color logs (ydb-platform#3747)
Browse files Browse the repository at this point in the history
  • Loading branch information
robdrynkin authored Apr 15, 2024
1 parent 25a9b47 commit 9eb8fa0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ydb/core/blobstorage/vdisk/common/vdisk_response.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,9 @@ void LogOOSStatus(ui32 flags, const TLogoBlobID& blobId, const TString& vDiskLog
if (!TlsActivationContext) {
return;
}
if (!(flags & NKikimrBlobStorage::StatusIsValid)) {
return;
}

ui32 prevFlags = curFlags.exchange(flags, std::memory_order_relaxed);
if (prevFlags == flags) {
Expand All @@ -87,6 +90,9 @@ void UpdateMonOOSStatus(ui32 flags, const std::shared_ptr<NMonGroup::TOutOfSpace
if (!monGroup) {
return;
}
if (!(flags & NKikimrBlobStorage::StatusIsValid)) {
return;
}

if (flags & NKikimrBlobStorage::StatusDiskSpaceRed) {
monGroup->ResponsesWithDiskSpaceRed().Inc();
Expand Down

0 comments on commit 9eb8fa0

Please sign in to comment.