cgrzemba / 389-ds-base

Forked from 389-ds-base 5 years ago
Clone

7028076 Ticket #302 - use thread local storage for internalModifiersName & internalCreatorsName

Authored and Committed by mreynolds 12 years ago
    Ticket #302 - use thread local storage for internalModifiersName & internalCreatorsName
    
    Bug Description:  use thread local storage for internalModifiersName & internalCreatorsName
    
    Fix description:  Created new thread local storage slapi functions for initializing, setting/getting
                      thread local storage data in a new file thread_data.c.  This was built on
                      top of some of the changes for ticket 111.
    
                      We create the index in main.c right before we start the plugins and worker threads.
                      Then we set the bind dn in bind_credentials_set_nolock(), nad we also set the
                      thread data when we copy the operation in op_copy_indentity so can maintian the
                      bind dn through different threads from the same connection.
    
                      For plugins that create new threads we need to pass the new thread the bind dn(char *),
                      and then set the thread data(slapi_td_set_dn()).
    
    https://fedorahosted.org/389/ticket/302
    
        
file modified
+1 -0
file modified
+26 -12
file modified
+29 -10
file modified
+3 -0
file modified
+42 -24
file modified
+2 -0