From: Andre Noll Date: Sat, 30 Mar 2013 21:30:54 +0000 (+0000) Subject: btr: Simplify btr_node_status(). X-Git-Tag: v0.5.1~9^2 X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=commitdiff_plain;h=bcea04fa816d0c0eb5469af6117b1014de8f87ca;hp=bcea04fa816d0c0eb5469af6117b1014de8f87ca 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. ---