aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoralexvru <alexvru@ydb.tech>2022-11-30 14:59:31 +0300
committeralexvru <alexvru@ydb.tech>2022-11-30 14:59:31 +0300
commit8b8f6d9c60b9095f67a533f0d80c06b3ca2f2ce5 (patch)
tree21d7109df43327b28963cc7c9d3533a198ab3121
parent413dfef105af7cae29c970cbb3d0a5abaf24cc3c (diff)
downloadydb-8b8f6d9c60b9095f67a533f0d80c06b3ca2f2ce5.tar.gz
Fix KeyValue bug
-rw-r--r--ydb/core/keyvalue/keyvalue_storage_read_request.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/ydb/core/keyvalue/keyvalue_storage_read_request.cpp b/ydb/core/keyvalue/keyvalue_storage_read_request.cpp
index d837e19437..4d91fef7ee 100644
--- a/ydb/core/keyvalue/keyvalue_storage_read_request.cpp
+++ b/ydb/core/keyvalue/keyvalue_storage_read_request.cpp
@@ -40,7 +40,7 @@ class TKeyValueStorageReadRequest : public TActorBootstrapped<TKeyValueStorageRe
};
THolder<TIntermediate> IntermediateResult;
- const TTabletStorageInfo *TabletInfo;
+ TIntrusivePtr<TTabletStorageInfo> TabletInfo;
ui32 TabletGeneration;
TStackVec<TGetBatch, 1> Batches;
@@ -502,7 +502,7 @@ public:
TKeyValueStorageReadRequest(THolder<TIntermediate> &&intermediate,
const TTabletStorageInfo *tabletInfo, ui32 tabletGeneration)
: IntermediateResult(std::move(intermediate))
- , TabletInfo(tabletInfo)
+ , TabletInfo(const_cast<TTabletStorageInfo*>(tabletInfo))
, TabletGeneration(tabletGeneration)
{}
};