File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -1029,9 +1029,12 @@ class TSelfCheckRequest : public TActorBootstrapped<TSelfCheckRequest> {
1029
1029
}
1030
1030
1031
1031
template <typename TEvent>
1032
- [[nodiscard]] TRequestResponse<typename WhiteboardResponse<TEvent>::Type> RequestNodeWhiteboard (TNodeId nodeId) {
1032
+ [[nodiscard]] TRequestResponse<typename WhiteboardResponse<TEvent>::Type> RequestNodeWhiteboard (TNodeId nodeId, std::initializer_list< int > fields = {} ) {
1033
1033
TActorId whiteboardServiceId = MakeNodeWhiteboardServiceId (nodeId);
1034
1034
auto request = MakeHolder<TEvent>();
1035
+ for (int field : fields) {
1036
+ request->Record .AddFieldsRequired (field);
1037
+ }
1035
1038
TRequestResponse<typename WhiteboardResponse<TEvent>::Type> response (Span.CreateChild (TComponentTracingLevels::TTablet::Detailed, TypeName (*request.Get ())));
1036
1039
if (response.Span ) {
1037
1040
response.Span .Attribute (" target_node_id" , nodeId);
@@ -1043,7 +1046,7 @@ class TSelfCheckRequest : public TActorBootstrapped<TSelfCheckRequest> {
1043
1046
1044
1047
void RequestGenericNode (TNodeId nodeId) {
1045
1048
if (NodeSystemState.count (nodeId) == 0 ) {
1046
- NodeSystemState.emplace (nodeId, RequestNodeWhiteboard<TEvWhiteboard::TEvSystemStateRequest>(nodeId));
1049
+ NodeSystemState.emplace (nodeId, RequestNodeWhiteboard<TEvWhiteboard::TEvSystemStateRequest>(nodeId, {- 1 } ));
1047
1050
++Requests;
1048
1051
}
1049
1052
}
You can’t perform that action at this time.
0 commit comments