Skip to content

Commit 169c92d

Browse files
authored
Restore LogAccEnabled in Discover and Get requests (#7651)
1 parent 1345ce6 commit 169c92d

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

ydb/core/blobstorage/dsproxy/dsproxy_request.cpp

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ namespace NKikimr {
107107
.TraceId = std::move(ev->TraceId),
108108
.Event = ev->Get(),
109109
.ExecutionRelay = ev->Get()->ExecutionRelay,
110+
.LogAccEnabled = ev->Get()->IsVerboseNoDataEnabled || ev->Get()->CollectDebugInfo,
110111
.LatencyQueueKind = kind,
111112
},
112113
.NodeLayout = TNodeLayoutInfoPtr(NodeLayoutInfo)
@@ -292,9 +293,10 @@ namespace NKikimr {
292293
EnsureMonitoring(true);
293294
Mon->EventDiscover->Inc();
294295
EnableWilsonTracing(ev, Mon->DiscoverSamplePPM);
295-
auto&& callback = Info->Type.GetErasure() == TBlobStorageGroupType::ErasureMirror3dc
296+
TErasureType::EErasureSpecies erasure = Info->Type.GetErasure();
297+
auto&& callback = erasure == TBlobStorageGroupType::ErasureMirror3dc
296298
? CreateBlobStorageGroupMirror3dcDiscoverRequest
297-
: Info->Type.GetErasure() == TBlobStorageGroupType::ErasureMirror3of4
299+
: erasure == TBlobStorageGroupType::ErasureMirror3of4
298300
? CreateBlobStorageGroupMirror3of4DiscoverRequest
299301
: CreateBlobStorageGroupDiscoverRequest;
300302
PushRequest(callback(
@@ -310,7 +312,9 @@ namespace NKikimr {
310312
.RestartCounter = ev->Get()->RestartCounter,
311313
.TraceId = std::move(ev->TraceId),
312314
.Event = ev->Get(),
313-
.ExecutionRelay = ev->Get()->ExecutionRelay
315+
.ExecutionRelay = ev->Get()->ExecutionRelay,
316+
.LogAccEnabled = (erasure != TBlobStorageGroupType::ErasureMirror3dc) &&
317+
(erasure != TBlobStorageGroupType::ErasureMirror3of4)
314318
}
315319
}),
316320
ev->Get()->Deadline

0 commit comments

Comments
 (0)