[PATCH] btree: avoid variable-length allocations

From: Jörn Engel
Date: Tue Mar 13 2018 - 17:10:22 EST


I agree that the code is garbage. In my defense, creating generic
iterator-type functions for multiple data types appears to be one of the
hardest problems in CS with many bad examples of what not to do.

Patch below should fix it. We have tcm_qla2xxx systems, so I will stick
it into our test system as well.

Jörn

--
It is a cliché that most clichés are true, but then, like most clichés,
that cliché is untrue.
-- Stephen Fry