mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-12 10:54:48 +08:00
fix building without threads (don't publish any thread-related monitor info...)
This commit is contained in:
parent
b009b1820e
commit
ca3451504c
@ -29,12 +29,7 @@
|
||||
|
||||
#include <ldap_rq.h>
|
||||
|
||||
static int
|
||||
monitor_subsys_thread_update(
|
||||
Operation *op,
|
||||
SlapReply *rs,
|
||||
Entry *e );
|
||||
|
||||
#ifndef NO_THREADS
|
||||
typedef enum {
|
||||
MT_UNKNOWN,
|
||||
MT_RUNQUEUE,
|
||||
@ -69,15 +64,22 @@ static struct {
|
||||
{ BER_BVNULL }
|
||||
};
|
||||
|
||||
static int
|
||||
monitor_subsys_thread_update(
|
||||
Operation *op,
|
||||
SlapReply *rs,
|
||||
Entry *e );
|
||||
#endif /* ! NO_THREADS */
|
||||
|
||||
/*
|
||||
* initializes log subentry
|
||||
*/
|
||||
int
|
||||
monitor_subsys_thread_init(
|
||||
BackendDB *be,
|
||||
monitor_subsys_t *ms
|
||||
)
|
||||
monitor_subsys_t *ms )
|
||||
{
|
||||
#ifndef NO_THREADS
|
||||
monitor_info_t *mi;
|
||||
monitor_entry_t *mp;
|
||||
Entry *e, **ep, *e_thread;
|
||||
@ -176,9 +178,11 @@ monitor_subsys_thread_init(
|
||||
|
||||
monitor_cache_release( mi, e_thread );
|
||||
|
||||
#endif /* ! NO_THREADS */
|
||||
return( 0 );
|
||||
}
|
||||
|
||||
#ifndef NO_THREADS
|
||||
static int
|
||||
monitor_subsys_thread_update(
|
||||
Operation *op,
|
||||
@ -310,4 +314,4 @@ monitor_subsys_thread_update(
|
||||
|
||||
return SLAP_CB_CONTINUE;
|
||||
}
|
||||
|
||||
#endif /* ! NO_THREADS */
|
||||
|
Loading…
Reference in New Issue
Block a user