source.ctf.lttng-live: clean-up: don't restart session iteration
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 25 Oct 2019 21:43:47 +0000 (17:43 -0400)
committerSimon Marchi <simon.marchi@efficios.com>
Tue, 29 Oct 2019 21:25:21 +0000 (17:25 -0400)
commit7d632b96cb0c572a64e34ab3bb66bddaf9eef2d6
tree5de773196c91f1281f8dcf6c3b52a53ef078f5ac
parentfba9b58eb538531c3c5862c21dc014b84bf5181e
source.ctf.lttng-live: clean-up: don't restart session iteration

Don't restart the iteration on a session array when a session has to
be removed. The contents of the array's current position are replaced
by the contents of the last position in the array. Thus, we can
continue the iteration from the current index.

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Change-Id: If058fe4b10c9c422b9f54edd63900b6804bbe8e2
Reviewed-on: https://review.lttng.org/c/babeltrace/+/2264
Reviewed-by: Simon Marchi <simon.marchi@efficios.com>
src/plugins/ctf/lttng-live/lttng-live.c
This page took 0.024228 seconds and 4 git commands to generate.