]> git.sur5r.net Git - openldap/commitdiff
ITS#2895 sleep(1) here masks race conditions, don't do it.
authorHoward Chu <hyc@openldap.org>
Wed, 24 Dec 2003 14:03:43 +0000 (14:03 +0000)
committerHoward Chu <hyc@openldap.org>
Wed, 24 Dec 2003 14:03:43 +0000 (14:03 +0000)
tests/progs/slapd-addel.c

index 78860f01f1d22c7ce84ce7e6cc1a59f027edfe28..4660a87afba4441d0db88eff28039658a3ca18c8 100644 (file)
@@ -292,8 +292,11 @@ do_addel(
 
                }
 
+#if 0
                /* wait a second for the add to really complete */
+               /* This masks some race conditions though. */
                sleep( 1 );
+#endif
 
                /* now delete the entry again */
                if ( ldap_delete_s( ld, entry ) != LDAP_SUCCESS ) {