Skip to content

Commit

Permalink
net/colo.c: No need to track conn_list for filter-rewriter
Browse files Browse the repository at this point in the history
Filter-rewriter no need to track connection in conn_list.
This patch fix the glib g_queue_is_empty assertion when COLO guest
keep a lot of network connection.

Signed-off-by: Zhang Chen <chen.zhang@intel.com>
Reviewed-by: Li Zhijian <lizhijian@fujitsu.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
  • Loading branch information
zhangckid authored and jasowang committed Jul 20, 2022
1 parent a18d436 commit 94c36c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/colo.c
Expand Up @@ -218,7 +218,7 @@ Connection *connection_get(GHashTable *connection_track_table,
/*
* clear the conn_list
*/
while (!g_queue_is_empty(conn_list)) {
while (conn_list && !g_queue_is_empty(conn_list)) {
connection_destroy(g_queue_pop_head(conn_list));
}
}
Expand Down

0 comments on commit 94c36c4

Please sign in to comment.