diff options
author | alexvru <alexvru@ydb.tech> | 2023-05-24 11:06:39 +0300 |
---|---|---|
committer | alexvru <alexvru@ydb.tech> | 2023-05-24 11:06:39 +0300 |
commit | 751ad5066fc6602d06766fc3a3b581e39fd79c15 (patch) | |
tree | ef4c2cb664fd6863f34a73d9bfd171283799c28c | |
parent | 34d33196336cd692af486491ac43db933e260392 (diff) | |
download | ydb-751ad5066fc6602d06766fc3a3b581e39fd79c15.tar.gz |
Fix bug in dsproxy
-rw-r--r-- | ydb/core/blobstorage/dsproxy/dsproxy_indexrestoreget.cpp | 3 | ||||
-rw-r--r-- | ydb/core/blobstorage/dsproxy/dsproxy_multiget.cpp | 3 |
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); } |