]> git.tuebingen.mpg.de Git - paraslash.git/commitdiff
btr: Simplify btr_node_status().
authorAndre Noll <maan@systemlinux.org>
Sat, 30 Mar 2013 21:30:54 +0000 (21:30 +0000)
committerAndre Noll <maan@systemlinux.org>
Sun, 29 Sep 2013 11:00:37 +0000 (13:00 +0200)
This changes btr_node_status() to check for errors before looking
at queue sizes. In certain cases this avoids to call the possibly
expensive btr_get_output_queue_size().

If no more input is going to arrive for an internal node whose output
queue is full, btr_node_status() now returns EOF immediately, which
is better than the previous scheme where we waited for the output
queue to become empty before returning EOF.


No differences found