Explicit data pending reason consumer side
authorJonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Mon, 27 Aug 2018 18:29:10 +0000 (14:29 -0400)
committerJonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Tue, 25 Jun 2019 15:12:49 +0000 (11:12 -0400)
Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
src/common/consumer/consumer.c

index b03bd39a96b97f747a4ace81aa087f01f3c774d1..22c2b9be53464ac296a844b3f743ea394e6f6550 100644 (file)
@@ -3618,6 +3618,7 @@ int consumer_data_pending(uint64_t id)
                        /* 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;
                        }
@@ -3678,6 +3679,7 @@ int consumer_data_pending(uint64_t id)
                        goto data_not_pending;
                }
                if (is_data_inflight) {
+                       DBG("Data is in flight on relayd %" PRIu64, relayd->id);
                        goto data_pending;
                }
        }
This page took 0.038372 seconds and 5 git commands to generate.