Fix: common: index_allocator_get_index_count() returns size
authorFrancis Deslauriers <francis.deslauriers@efficios.com>
Fri, 26 Mar 2021 18:41:01 +0000 (14:41 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 26 Mar 2021 22:52:48 +0000 (18:52 -0400)
The lttng_index_allocator_get_index_count() should return the number of
allocated indexes. Right now it returns the maximum number of indexes.

I witnessed the following message when running testing the event
notifier error counter feature:
  Warning: Destroying index allocator with 4096 slot indexes still in use

Signed-off-by: Francis Deslauriers <francis.deslauriers@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Change-Id: Ibbcb3f128553df0a4118901ef85ae6fe17ebcecf


No differences found
This page took 0.024775 seconds and 4 git commands to generate.