mreynolds / 389-ds-base

Forked from 389-ds-base 6 years ago
Clone

90bf179 Ticket 49029 - improve internal operations logging

Authored and Committed by mreynolds 5 years ago
    Ticket 49029 - improve internal operations logging
    
    Description:  This patch uses "local thread storage" to keep track of
                  the connection and op id numbers for internal operations.
                  This makes it easier to follow the access logs and know
                  what connection is actually doing what.
    
                  It also maintains its on operation id count for each
                  internal operation.  This adds complexity once internal ops
                  start nesting (plugins calling plugins).  To handle this
                  two LTS variables were added to keep track of the nested
                  level or count, and one to know once a series of nested
                  operations are finally unnested/complete.  This is needed
                  to maintain the correct internal operation id counter correct
                  and in sequence.
    
                  Also organized the local thread storage initialization into
                  a single function - there was no need to have separate
                  functions.
    
                  Thanks lkrispenz for improving the logging format, and
                  providing the initial patch this was all based off of.
    
    https://pagure.io/389-ds-base/issue/49029
    
    Reviewed by: tbordaz & lkrispen(Thanks!)
    
        
file modified
+3 -1
file modified
+12 -4
file modified
+12 -3
file modified
+8 -3
file modified
+12 -3
file modified
+11 -3
file modified
+21 -5
file modified
+50 -23
file modified
+238 -33
file modified
+30 -0