[Tarantool-patches] [PATCH v2 06/10] box: introduce stacked diagnostic area
Konstantin Osipov
kostja.osipov at gmail.com
Thu Mar 26 21:08:14 MSK 2020
* Nikita Pettik <korablev at tarantool.org> [20/03/26 21:04]:
> > If you have to do it, better use rlist, rlist_del(e) rlist_add(e),
> > this will make sure there are no cycles and the cost is constant.
>
> rlist implementation is not really suitable for organizing errors
> into list. See comment in the code:
>
> * RLIST implementation is not really suitable here
> * since it is organized as circular list. In such
> * a case it is impossible to start an iteration
> * from any node and finish at the logical end of the
> * list.
I missed it, sorry. No, it's still possible, you can stor struct
rlist head in the diagnostics, and whenever you meet the head, you
reached the end.
Basically an end marker.
--
Konstantin Osipov, Moscow, Russia
More information about the Tarantool-patches
mailing list