From: Jérémie Galarneau Date: Wed, 21 Nov 2018 00:24:58 +0000 (-0500) Subject: Reference count ltt_session objects X-Git-Url: http://git.efficios.com/?p=lttng-tools.git;a=commitdiff_plain;h=e32d7f274604b77bcd83c24994e88df3761ed658;hp=e32d7f274604b77bcd83c24994e88df3761ed658 Reference count ltt_session objects The lifetime of ltt_session objects is mishandled in a number of situations. For instance, if a rotation is launched on a session and the session is destroyed during the rotation, it is not possible for the session daemon to identify the completion of the rotation. This then prevents the session daemon from renaming the last chunk of a now-destroyed session and from notifying clients that a new trace archive chunk is available. This change only introduces reference counting of the ltt_session objects; it does not change any behavior with regards to the lifetime of the sessions themselved. Follow-up commits introduce those changes. Signed-off-by: Jérémie Galarneau ---