aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoralexvru <alexvru@ydb.tech>2023-05-24 11:06:39 +0300
committeralexvru <alexvru@ydb.tech>2023-05-24 11:06:39 +0300
commit751ad5066fc6602d06766fc3a3b581e39fd79c15 (patch)
treeef4c2cb664fd6863f34a73d9bfd171283799c28c
parent34d33196336cd692af486491ac43db933e260392 (diff)
downloadydb-751ad5066fc6602d06766fc3a3b581e39fd79c15.tar.gz
Fix bug in dsproxy
-rw-r--r--ydb/core/blobstorage/dsproxy/dsproxy_indexrestoreget.cpp3
-rw-r--r--ydb/core/blobstorage/dsproxy/dsproxy_multiget.cpp3
2 files changed, 6 insertions, 0 deletions
diff --git a/ydb/core/blobstorage/dsproxy/dsproxy_indexrestoreget.cpp b/ydb/core/blobstorage/dsproxy/dsproxy_indexrestoreget.cpp
index c15adde217..e2a14e45e6 100644
--- a/ydb/core/blobstorage/dsproxy/dsproxy_indexrestoreget.cpp
+++ b/ydb/core/blobstorage/dsproxy/dsproxy_indexrestoreget.cpp
@@ -292,6 +292,9 @@ public:
for (ui32 idx = 0; idx < QuerySize; ++idx) {
BlobStatus.emplace_back(Queries[idx].Id, Info.Get());
}
+
+ // phantom checks are for non-index queries only
+ Y_VERIFY(!ev->PhantomCheck);
}
void Bootstrap() {
diff --git a/ydb/core/blobstorage/dsproxy/dsproxy_multiget.cpp b/ydb/core/blobstorage/dsproxy/dsproxy_multiget.cpp
index eba8d52a25..50042fc438 100644
--- a/ydb/core/blobstorage/dsproxy/dsproxy_multiget.cpp
+++ b/ydb/core/blobstorage/dsproxy/dsproxy_multiget.cpp
@@ -24,6 +24,7 @@ class TBlobStorageGroupMultiGetRequest : public TBlobStorageGroupRequestActor<TB
const TArrayHolder<TEvBlobStorage::TEvGet::TQuery> Queries;
const TInstant Deadline;
const bool IsInternal;
+ const bool PhantomCheck;
TArrayHolder<TEvBlobStorage::TEvGetResult::TResponse> Responses;
const TInstant StartTime;
@@ -102,6 +103,7 @@ public:
, Queries(ev->Queries.Release())
, Deadline(ev->Deadline)
, IsInternal(ev->IsInternal)
+ , PhantomCheck(ev->PhantomCheck)
, Responses(new TEvBlobStorage::TEvGetResult::TResponse[QuerySize])
, StartTime(now)
, MustRestoreFirst(ev->MustRestoreFirst)
@@ -121,6 +123,7 @@ public:
MustRestoreFirst, false, ForceBlockTabletData);
ev->IsInternal = IsInternal;
ev->ReaderTabletData = ReaderTabletData;
+ ev->PhantomCheck = PhantomCheck;
PendingGets.emplace_back(std::move(ev), cookie);
}