diff options
author | alexvru <alexvru@ydb.tech> | 2022-10-17 17:41:26 +0300 |
---|---|---|
committer | alexvru <alexvru@ydb.tech> | 2022-10-17 17:41:26 +0300 |
commit | 3717bf8db1cedcc16b1fcc364060220d72336734 (patch) | |
tree | 0b5241badc2dcce3ec370cfa6dc121855d587866 | |
parent | f9fcf7e37d27a6166f185649c57a3d52be02bf8b (diff) | |
download | ydb-3717bf8db1cedcc16b1fcc364060220d72336734.tar.gz |
Fix coverity issue
-rw-r--r-- | ydb/core/blob_depot/given_id_range.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ydb/core/blob_depot/given_id_range.cpp b/ydb/core/blob_depot/given_id_range.cpp index c65ca410ce..fd11e50156 100644 --- a/ydb/core/blob_depot/given_id_range.cpp +++ b/ydb/core/blob_depot/given_id_range.cpp @@ -107,12 +107,12 @@ namespace NKikimr::NBlobDepot { const TChunk cut = chunk & mask; chunk -= mask; - if (chunk.Empty()) { - Ranges.erase(it); - } if (!cut.Empty()) { result.Ranges.emplace_hint(result.Ranges.end(), it->first, cut); } + if (chunk.Empty()) { + Ranges.erase(it); + } const size_t count = cut.Count(); NumAvailableItems -= count; |