Bug #77765 The channel service interface lacks a method to check the receiver thread id.
Submitted: 17 Jul 2015 15:10 Modified: 1 Sep 2015 14:02
Reporter: Pedro Gomes Email Updates:
Status: Closed Impact on me:
None 
Category:Tests: Replication Severity:S3 (Non-critical)
Version:5.7.6 OS:Any
Assigned to: CPU Architecture:Any

[17 Jul 2015 15:10] Pedro Gomes
Description:
In the context of WL#8446 it was noticeable that the channel service
interface lacks a method to check the receiver thread id. In fact the
interface should be generic and always allow to execute the same
methods on both threads whenever it makes sense to.

This method shall be useful to identify if the thread that executed
some hook is the thread from channel A or B.

How to repeat:
Read the code, it only contains the method:

int channel_get_appliers_thread_id(const char* channel,
                                   unsigned long** appliers_id);

Suggested fix:
The method should be generic

int channel_get_thread_id(const char* channel,
                          unsigned long** thread_id,
                    >>>>  type_of_thread);
[3 Feb 2016 21:53] Todd Farmer
Internal code cleanup completed, no docs required.