]> git.sur5r.net Git - openldap/commitdiff
Avoid shutdown problems
authorHoward Chu <hyc@openldap.org>
Fri, 13 Mar 2009 08:33:34 +0000 (08:33 +0000)
committerHoward Chu <hyc@openldap.org>
Fri, 13 Mar 2009 08:33:34 +0000 (08:33 +0000)
servers/slapd/overlays/syncprov.c

index 8e9fae5a403ea849b5438387828013debe8466c9..969e3024170d2457d794d11b1e58a3a1fa8c4689 100644 (file)
@@ -1944,6 +1944,9 @@ syncprov_op_mod( Operation *op, SlapReply *rs )
                                 * Currently it's not an issue because there are
                                 * no dynamic config deletes...
                                 */
+                               if ( slapd_shutdown )
+                                       return SLAPD_ABANDON;
+
                                if ( !ldap_pvt_thread_pool_pausecheck( &connection_pool ))
                                        ldap_pvt_thread_yield();
                                ldap_pvt_thread_mutex_lock( &mt->mt_mutex );