aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorchertus <azuikov@ydb.tech>2023-08-14 16:56:16 +0300
committerchertus <azuikov@ydb.tech>2023-08-15 00:08:30 +0300
commit986b29adf4b495f37110df99841ccbd0fa7f85b8 (patch)
treebcd03507630f8d9c96e411eb4aa6ee57d033d3ee
parent3e724455e77706e2bc147e82423606684c2425bc (diff)
downloadydb-986b29adf4b495f37110df99841ccbd0fa7f85b8.tar.gz
KIKIMR-18999 fix memory access in s3 actor
-rw-r--r--ydb/core/tx/tiering/s3_actor.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/ydb/core/tx/tiering/s3_actor.cpp b/ydb/core/tx/tiering/s3_actor.cpp
index d04e9866bb..21a9917a72 100644
--- a/ydb/core/tx/tiering/s3_actor.cpp
+++ b/ydb/core/tx/tiering/s3_actor.cpp
@@ -456,9 +456,10 @@ public:
LOG_S_DEBUG("[S3] KeyFinished for key '" << key << "' at tablet " << TabletId);
auto& ex = it->second;
- TUnifiedBlobId blobId = ex.FinishKey(key);
-
- ex.Event->AddResult(blobId, key, hasError, errStr);
+ if (ex.IsNotFinished(key)) {
+ TUnifiedBlobId blobId = ex.FinishKey(key);
+ ex.Event->AddResult(blobId, key, hasError, errStr);
+ }
if (ex.ExtractionFinished()) {
for (auto& [blobId, _] : ex.Blobs()) {