[389-commits] Branch 'Directory_Server_8_2_Branch' - ldap/servers

Noriko Hosoi nhosoi at fedoraproject.org
Fri May 21 23:35:00 UTC 2010


 ldap/servers/slapd/slapi_counter.c |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

New commits:
commit 3ae15e27afd96770546b2c81c0daef3837d1d1e2
Author: Noriko Hosoi <nhosoi at redhat.com>
Date:   Fri May 21 16:34:24 2010 -0700

    588867 - entryusn plugin fails on solaris
    
    https://bugzilla.redhat.com/show_bug.cgi?id=588867
    
    Fix description: _sparcv9_AtomicAdd, _sparcv9_AtomicSub, and
    _sparcv9_AtomicSet were not correctly declared.  It brought
    in the implicit function declaration, where the return value
    were casted to 32-bit integer and the comparison against the
    64-bit unsigned integer failed.  The comparison was in the
    endless loop and it caused the server hang.

diff --git a/ldap/servers/slapd/slapi_counter.c b/ldap/servers/slapd/slapi_counter.c
index 0f56c8a..c3f1f44 100644
--- a/ldap/servers/slapd/slapi_counter.c
+++ b/ldap/servers/slapd/slapi_counter.c
@@ -42,9 +42,9 @@
 #include "slap.h"
 
 #ifdef SOLARIS
-PRUint64 _sparcv9_AtomicSet_il(PRUint64 *address, PRUint64 newval);
-PRUint64 _sparcv9_AtomicAdd_il(PRUint64 *address, PRUint64 val);
-PRUint64 _sparcv9_AtomicSub_il(PRUint64 *address, PRUint64 val);
+PRUint64 _sparcv9_AtomicSet(PRUint64 *address, PRUint64 newval);
+PRUint64 _sparcv9_AtomicAdd(PRUint64 *address, PRUint64 val);
+PRUint64 _sparcv9_AtomicSub(PRUint64 *address, PRUint64 val);
 #endif
 
 #ifdef HPUX




More information about the 389-commits mailing list