add status code for apply_cb for terminating applier

Bug #1020450 reported by Seppo Jaakola
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MySQL patches by Codership
Status tracked in 5.6
5.6
Fix Released
Wishlist
Seppo Jaakola

Bug Description

Applier threads must terminate gracefully, and best way to do it seems to be to mark an applier to be terminated and when returning from next apply_cb call, to tell the provider library that this applier thread needs to terminate.

SImple way to communicate this need to terminate applier is to reserve new status code for apply_cb:

WSREP_APPLIER_CLOSING - applying was successful, and applier should return from repl_recv() call

Changed in wsrep:
importance: Undecided → Wishlist
Changed in codership-mysql:
importance: Undecided → Wishlist
Changed in wsrep:
assignee: nobody → Seppo Jaakola (seppo-jaakola)
Changed in codership-mysql:
assignee: nobody → Seppo Jaakola (seppo-jaakola)
Changed in wsrep:
status: New → Fix Committed
Changed in codership-mysql:
status: New → Fix Committed
Changed in wsrep:
milestone: none → 24
Changed in codership-mysql:
status: Fix Committed → In Progress
Revision history for this message
Seppo Jaakola (seppo-jaakola) wrote :
no longer affects: wsrep
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.