]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/back-monitor/log.c
Simpler fix for NO_THREADS
[openldap] / servers / slapd / back-monitor / log.c
index ab379e9222d8c8bec6d3a11ff7d6e18dba8bd297..669f250706494c56b5847d7c3fc25aa2a21621c1 100644 (file)
@@ -95,10 +95,10 @@ monitor_subsys_log_init(
        if ( monitor_cache_get( mi, &monitor_subsys[SLAPD_MONITOR_LOG].mss_ndn, 
                                &e ) ) {
 #ifdef NEW_LOGGING
-               LDAP_LOG(( "operation", LDAP_LEVEL_CRIT,
+               LDAP_LOG( OPERATION, CRIT,
                        "monitor_subsys_log_init: "
                        "unable to get entry '%s'\n",
-                       monitor_subsys[SLAPD_MONITOR_LOG].mss_ndn.bv_val ));
+                       monitor_subsys[SLAPD_MONITOR_LOG].mss_ndn.bv_val, 0, 0 );
 #else
                Debug( LDAP_DEBUG_ANY,
                        "monitor_subsys_log_init: "
@@ -180,7 +180,7 @@ monitor_subsys_log_modify(
                        break;
 
                default:
-                       rc = LDAP_OPERATIONS_ERROR;
+                       rc = LDAP_OTHER;
                        break;
                }
 
@@ -201,7 +201,6 @@ monitor_subsys_log_modify(
 
                        goto cleanup;
                }
-               ldap_pvt_thread_mutex_unlock( &op->o_abandonmutex );
 #endif
 
                /* check that the entry still obeys the schema */