mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-24 13:24:56 +08:00
Tweak prev commit
This commit is contained in:
parent
17a4215256
commit
b3655504a7
@ -66,7 +66,7 @@ static ConfigTable bdbcfg[] = {
|
||||
{ "dbconfig", "DB_CONFIG setting", 1, 0, 0, ARG_MAGIC|BDB_CONFIG,
|
||||
bdb_cf_gen, "( OLcfgDbAt:1.3 NAME 'olcDbConfig' "
|
||||
"DESC 'BerkeleyDB DB_CONFIG configuration directives' "
|
||||
"SYNTAX OMsDirectoryString )",NULL, NULL },
|
||||
"SYNTAX OMsDirectoryString X-ORDERED 'VALUES' )",NULL, NULL },
|
||||
{ "dbnosync", NULL, 1, 2, 0, ARG_ON_OFF|ARG_MAGIC|BDB_NOSYNC,
|
||||
bdb_cf_gen, "( OLcfgDbAt:1.4 NAME 'olcDbNoSync' "
|
||||
"DESC 'Disable synchronous database writes' "
|
||||
@ -516,15 +516,8 @@ bdb_cf_gen(ConfigArgs *c)
|
||||
ptr += STRLENOF("dbconfig");
|
||||
while (!isspace(*ptr)) ptr++;
|
||||
while (isspace(*ptr)) ptr++;
|
||||
} else {
|
||||
if (*ptr == '{') {
|
||||
ptr = strchr( ptr+1, '}');
|
||||
if (!ptr)
|
||||
return(1);
|
||||
ptr++;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if ( bdb->bi_flags & BDB_IS_OPEN ) {
|
||||
bdb->bi_flags |= BDB_UPD_CONFIG;
|
||||
c->cleanup = bdb_cf_cleanup;
|
||||
|
Loading…
Reference in New Issue
Block a user