Fix: lttng: Destroying session message repeated during destruction
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 14 May 2020 20:08:56 +0000 (16:08 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Tue, 26 May 2020 21:27:00 +0000 (17:27 -0400)
commit7e182a6eacc09a5de22ae1ed8eddd1aeb0edef33
treee3e8b46bb7a54e6b7da1e35cc3a10bf57582d13d
parentd9360bf7037f21b85b3ef010990a65d253ead3fd
Fix: lttng: Destroying session message repeated during destruction

Observed Issue
==============

The `Destroying session X` is repeated indifinitely whenever
the data pending phase lasts more than one iteration.

```
$ lttng destroy
Destroying session eloi_turcotte.Destroying session
eloi_turcotte.Destroying session eloi_turcotte.Destroying session
eloi_turcotte.D
```

Cause
=====

Missing check that the message has been printed.

Solution
========

Use the same check as is done later for
lttng_destruction_handle_wait_for_completion().

Known drawbacks
===============

None.

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Change-Id: I6cd29d917925644a4994c515b4177bbd05ffa98e
src/bin/lttng/commands/destroy.c
This page took 0.025858 seconds and 4 git commands to generate.