Skip to content

Commit ef06df1

Browse files
added RequestBSControllerConfigWithStoragePools
1 parent ca3b86f commit ef06df1

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

ydb/core/viewer/json_pipe_req.h

+8
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,14 @@ class TViewerPipeClient : public TActorBootstrapped<TDerived> {
148148
SendRequestToPipe(pipeClient, request.Release());
149149
}
150150

151+
void RequestBSControllerConfigWithStoragePools() {
152+
TActorId pipeClient = ConnectTabletPipe(GetBSControllerId());
153+
THolder<TEvBlobStorage::TEvControllerConfigRequest> request = MakeHolder<TEvBlobStorage::TEvControllerConfigRequest>();
154+
request->Record.MutableRequest()->AddCommand()->MutableQueryBaseConfig();
155+
request->Record.MutableRequest()->AddCommand()->MutableReadStoragePool()->SetBoxId(Max<ui64>());
156+
SendRequestToPipe(pipeClient, request.Release());
157+
}
158+
151159
void RequestBSControllerInfo() {
152160
TActorId pipeClient = ConnectTabletPipe(GetBSControllerId());
153161
THolder<TEvBlobStorage::TEvRequestControllerInfo> request = MakeHolder<TEvBlobStorage::TEvRequestControllerInfo>();

ydb/core/viewer/json_storage_base.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ class TJsonStorageBase : public TViewerPipeClient<TJsonStorageBase> {
174174
return;
175175
}
176176

177-
RequestBSControllerConfig();
177+
RequestBSControllerConfigWithStoragePools();
178178

179179
TBase::Become(&TThis::StateWork);
180180
Schedule(TDuration::MilliSeconds(Timeout / 100 * 70), new TEvents::TEvWakeup(TimeoutBSC)); // 70% timeout (for bsc)

0 commit comments

Comments
 (0)