/* Check the stream if there is data in the buffers. */
ret = data_pending(stream);
if (ret == 1) {
+ DBG("Data is pending locally on stream %" PRIu64, stream->key);
pthread_mutex_unlock(&stream->lock);
goto data_pending;
}
}
if (ret == 1) {
pthread_mutex_unlock(&relayd->ctrl_sock_mutex);
- pthread_mutex_unlock(&stream->lock);
goto data_pending;
}
if (ret < 0) {
ERR("Relayd data pending failed. Cleaning up relayd %" PRIu64".", relayd->id);
lttng_consumer_cleanup_relayd(relayd);
pthread_mutex_unlock(&relayd->ctrl_sock_mutex);
- pthread_mutex_unlock(&stream->lock);
goto data_not_pending;
}
}
goto data_not_pending;
}
if (is_data_inflight) {
+ DBG("Data is in flight on relayd %" PRIu64, relayd->id);
goto data_pending;
}
}