[Freeipa-devel] [PATCH 0098] Log failures detected in CHECK() macro

Petr Spacek pspacek at redhat.com
Tue Nov 20 13:44:49 UTC 2012


Hello,

     Log failures detected in CHECK() macro.

     Function ldap_query() can return ISC_R_NOTFOUND legitimately.
     For this and similar cases CHECK_CONDLOG macro was introduced.
     It will not log if result != ISC_R_SUCCESS but == ignored_code.
     Nested condition will be eliminated by optimizing compiler
     in cases where ignored_code == ISC_R_SUCCESS.

     Function add_soa_record() is now called only for zones to prevent
     false error messages.

-- 
Petr^2 Spacek
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bind-dyndb-ldap-pspacek-0098-Log-failures-detected-in-CHECK-macro.patch
Type: text/x-patch
Size: 2950 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/freeipa-devel/attachments/20121120/77d9d362/attachment.bin>


More information about the Freeipa-devel mailing list