Make io-threads modification startup-only

This commit is contained in:
Ondřej Kuzník 2018-04-04 16:37:55 +01:00
parent db3961f489
commit 93d20459f1

View file

@ -842,9 +842,16 @@ config_generic( ConfigArgs *c )
mask <<= 1;
mask |= 1;
}
lload_daemon_mask = mask;
lload_daemon_threads = mask + 1;
flag = LLOAD_DAEMON_MOD_THREADS;
if ( !lloadd_inited ) {
lload_daemon_mask = mask;
lload_daemon_threads = mask + 1;
flag = LLOAD_DAEMON_MOD_THREADS;
} else {
snprintf( c->cr_msg, sizeof(c->cr_msg),
"io thread changes will not take effect until "
"restart" );
Debug( LDAP_DEBUG_ANY, "%s: %s\n", c->log, c->cr_msg );
}
} break;
case CFG_LOGFILE: {