Fix: event notifier: adapt read iterator state to poll expectations
[lttng-modules.git] / src / lttng-abi.c
index 09e437884c8e54971dad9597d6f517cb8cf660fc..c62e295e5fdea2f9ebb320fd8340cfb51e52314e 100644 (file)
@@ -909,11 +909,14 @@ skip_get_next:
                }
                read_count += copy_len;
        }
-       return read_count;
+       goto put_record;
 
 nodata:
        *ppos = 0;
        chan->iter.len_left = 0;
+
+put_record:
+       lib_ring_buffer_put_current_record(buf);
        return read_count;
 }
 
This page took 0.023616 seconds and 4 git commands to generate.