[PATCH] ctdb-recoverd: Avoid duplicate recoverd event in parallel recovery

Amitay Isaacs amitay at gmail.com
Wed Jun 8 04:46:56 UTC 2016


Hi,

In do_recovery, after the recovery and takeover is complete, recoverd
event is triggered.  When the parallel database recovery was separated,
ctdb_recovery_helper implemented sending END_RECOVERY control which
causes recoverd event to be triggered.  So when there is parallel database
recovery, recoverd event is triggered twice.

Instead move the call to run_recovered_eventscript() explicitly in
the serial recovery code path.  This avoids the duplication trigger of
recoverd event.

Please review and push.

Amitay.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-ctdb-recoverd-Avoid-duplicate-recoverd-event-in-para.patch
Type: application/text
Size: 2397 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20160608/b4639883/0001-ctdb-recoverd-Avoid-duplicate-recoverd-event-in-para.bin>


More information about the samba-technical mailing list