]> git.tuebingen.mpg.de Git - paraslash.git/commit
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)
commitbcea04fa816d0c0eb5469af6117b1014de8f87ca
treeab2d3aedb1fb3fccc84f9957c7ed814a113cad54
parent072391fccbd052334dbd836d451f2be0a74a0685
btr: Simplify btr_node_status().

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.
buffer_tree.c