Skip to content
Snippets Groups Projects
Commit dd321ecf authored by Wang Yong's avatar Wang Yong Committed by Jason Wang
Browse files

colo-compare: Use IOThread to Check old packet regularly and Process pactkets of the primary


Remove the task which check old packet in the comparing thread,
then use IOthread context timer to handle it.

Process pactkets in the IOThread which arrived over the socket.
we use iothread_get_g_main_context to create a new g_main_loop in
the IOThread.then the packets from the primary and the secondary
are processed in the IOThread.

Finally remove the colo-compare thread using the IOThread instead.

Reviewed-by: default avatarZhang <Chen&lt;zhangchen.fnst@cn.fujitsu.com>
Signed-off-by: default avatarWang Yong <wang.yong155@zte.com.cn>
Signed-off-by: default avatarWang Guang <wang.guang55@zte.com.cn>
Signed-off-by: default avatarJason Wang <jasowang@redhat.com>
parent 329163cb
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment