diff options
author | alexvru <alexvru@ydb.tech> | 2023-01-18 12:22:38 +0300 |
---|---|---|
committer | alexvru <alexvru@ydb.tech> | 2023-01-18 12:22:38 +0300 |
commit | b1b9ed7fe8ec050a481ad42bed290404595b8089 (patch) | |
tree | d123e97d6e1ab9ac31d0bf2de73f567786e5fb90 | |
parent | 1fc17b8583aabcb57fab1c082783310d7b39ee94 (diff) | |
download | ydb-b1b9ed7fe8ec050a481ad42bed290404595b8089.tar.gz |
Fix asan problem
-rw-r--r-- | ydb/core/blob_depot/data.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ydb/core/blob_depot/data.cpp b/ydb/core/blob_depot/data.cpp index fd509ead95..dcb728a77a 100644 --- a/ydb/core/blob_depot/data.cpp +++ b/ydb/core/blob_depot/data.cpp @@ -159,13 +159,13 @@ namespace NKikimr::NBlobDepot { auto row = NIceDb::TNiceDb(txc.DB).Table<Schema::Data>().Key(key.MakeBinaryKey()); switch (outcome) { case EUpdateOutcome::DROP: + if (wasGoingToAssimilate) { + Self->TabletCounters->Simple()[NKikimrBlobDepot::COUNTER_BYTES_TO_DECOMMIT] -= key.GetBlobId().BlobSize(); + } UncertaintyResolver->DropKey(key); Data.erase(it); row.Delete(); ValidateRecords(); - if (wasGoingToAssimilate) { - Self->TabletCounters->Simple()[NKikimrBlobDepot::COUNTER_BYTES_TO_DECOMMIT] -= key.GetBlobId().BlobSize(); - } return true; case EUpdateOutcome::CHANGE: |