Fix: session_find_by_id can return NULL legitimately
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Wed, 9 Mar 2016 20:34:52 +0000 (15:34 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Wed, 9 Mar 2016 20:34:52 +0000 (15:34 -0500)
commitd68ec9741e83c99eea549243eec46c37b4eea61f
tree8d143a70a0956c92d50e55e6ae070e854872d074
parentaccdc9bfb89aa7e2f511caa9c69f59a42c55c2af
Fix: session_find_by_id can return NULL legitimately

session_find_by_id can return NULL when the backing hash table
is NULL. This is not an error in the context of
its caller, save_per_pid_lost_discarded_counters(), since the
ltt_session can be destroyed before an ust app session is torn down.

See the comment in save_per_pid_lost_discarded_counters() for more
information.

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/bin/lttng-sessiond/session.c
src/bin/lttng-sessiond/ust-app.c
This page took 0.025574 seconds and 4 git commands to generate.