Skip to content

Commit 9db6dbd

Browse files
authored
DPL: hotfix for resource manager (#6215)
* Demote some messages to debug. * Properly handle more than one reader.
1 parent 9899907 commit 9db6dbd

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

Framework/Core/src/ArrowSupport.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ o2::framework::ServiceSpec ArrowSupport::arrowBackendSpec()
227227
if (availableSharedMemory < 1000) {
228228
break;
229229
}
230-
size_t candidate = (lastDeviceOffered + di) % specs.size();
230+
size_t candidate = (lastDeviceOffered + 1 + di) % specs.size();
231231
if (specs[candidate].name != "internal-dpl-aod-reader") {
232232
continue;
233233
}

Framework/Core/src/DeviceController.cxx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,15 @@ DeviceController::DeviceController(WSDPLHandler* handler)
2525

2626
void DeviceController::hello()
2727
{
28-
LOG(INFO) << "Saying hello";
28+
LOG(debug) << "Saying hello";
2929
std::vector<uv_buf_t> outputs;
3030
encode_websocket_frames(outputs, "hello", strlen("hello"), WebSocketOpCode::Binary, 0);
3131
mHandler->write(outputs);
3232
}
3333

3434
void DeviceController::write(char const* message, size_t s)
3535
{
36-
LOGP(INFO, "Saying {} to device", message);
36+
LOGP(debug, "Saying {} to device", message);
3737
std::vector<uv_buf_t> outputs;
3838
encode_websocket_frames(outputs, message, s, WebSocketOpCode::Binary, 0);
3939
mHandler->write(outputs);

Framework/GUISupport/src/FrameworkGUIDeviceInspector.cxx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -248,8 +248,8 @@ void displayDeviceInspector(DeviceSpec const& spec,
248248
}
249249
#endif
250250
if (control.controller) {
251-
if (ImGui::Button("Offer resources")) {
252-
control.controller->write("/shm-mem 1000", strlen("/shm-mem 1000"));
251+
if (ImGui::Button("Offer SHM")) {
252+
control.controller->write("/shm-offer 1000", strlen("/shm-offer 1000"));
253253
}
254254
}
255255

0 commit comments

Comments
 (0)