*/
#define _LGPL_SOURCE
-#include <assert.h>
#include <common/common.h>
#include <common/utils.h>
/* Delete index from hash table. */
iter.iter.node = &index->index_n.node;
ret = lttng_ht_del(stream->indexes_ht, &iter);
- assert(!ret);
+ LTTNG_ASSERT(!ret);
stream->indexes_in_flight--;
}
* Index lock ensures that concurrent test and update of stream
* ref is atomic.
*/
- assert(index->ref.refcount != 0);
+ LTTNG_ASSERT(index->ref.refcount != 0);
urcu_ref_put(&index->ref, index_release);
rcu_read_unlock();
}