• WuYunlong's avatar
    Refactor streamAppendItem() by deleting redundancy condition. (#7487) · 86fed3fe
    WuYunlong authored
    It will never happen that "lp != NULL && lp_bytes >= server.stream_node_max_bytes".
    Assume that "lp != NULL && lp_bytes >= server.stream_node_max_bytes",
    we got the following conditions:
    a. lp != NULL
    b. lp_bytes >= server.stream_node_max_bytes
    
    If server.stream_node_max_bytes is 0, given condition a, condition b is always satisfied
    If server.stream_node_max_bytes is not 0, given condition a and condition b, the codes just a
    	few lines above set lp to NULL, a controdiction with condition a
    
    So that condition b is recundant. We could delete it safely.
    86fed3fe
t_stream.c 110 KB