Skip to content

Commit

Permalink
cleanup(libs): remove assert() that may trigger
Browse files Browse the repository at this point in the history
Signed-off-by: Luca Guerra <[email protected]>
  • Loading branch information
LucaGuerra authored and poiana committed Jan 20, 2025
1 parent e17aca4 commit 02ac6f6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion userspace/libsinsp/threadinfo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1551,8 +1551,9 @@ void sinsp_thread_manager::remove_main_thread_fdtable(sinsp_threadinfo* main_thr
//
// The canceled fd should always be deleted immediately, so if it appears
// here it means we have a problem.
// Note: it looks like that the canceled FD may appear here in case of high drop
// and we need to recover. This was an assertion failure, now removed.
//
ASSERT(eparams.m_fd != CANCELED_FD_NUMBER);
eparams.m_fdinfo = &fdinfo;

/* Here we are just calling the `on_erase` callback */
Expand Down

0 comments on commit 02ac6f6

Please sign in to comment.