Test: clear: local, streaming, live, tracefile rotation
[lttng-tools.git] / src / bin / lttng-relayd / live.c
index d682d3b09bd22e0ee3a4fcc534ecc80b47a56d70..c06b38cb7b2977929fa391d9b709f46b79ac83d9 100644 (file)
@@ -1098,6 +1098,15 @@ int viewer_attach_session(struct relay_connection *conn)
                goto send_reply;
        }
 
+       if (testpoint(relayd_viewer_session_attach)) {
+               ERR("Viewer session attach testpoint failed");
+               send_streams = 0;
+               response.streams_count = 0;
+               response.status = htobe32(LTTNG_VIEWER_ATTACH_UNK);
+               goto send_reply;
+       }
+
+
 send_reply:
        health_code_update();
        ret = send_response(conn->sock, &response, sizeof(response));
This page took 0.026555 seconds and 5 git commands to generate.