From: Howard Chu Date: Fri, 4 Mar 2005 09:45:08 +0000 (+0000) Subject: Don't restrict cache sizes to non-zero X-Git-Tag: OPENLDAP_REL_ENG_2_3_BP~97 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=0b9ffad770966107d08b8e48f993d73cbbd8e3ca;p=openldap Don't restrict cache sizes to non-zero --- diff --git a/servers/slapd/back-bdb/config.c b/servers/slapd/back-bdb/config.c index 74a297c467..03054d2a84 100644 --- a/servers/slapd/back-bdb/config.c +++ b/servers/slapd/back-bdb/config.c @@ -49,7 +49,7 @@ static ConfigTable bdbcfg[] = { "DESC 'Directory for database content' " "EQUALITY caseIgnoreMatch " "SYNTAX OMsDirectoryString )", NULL, NULL }, - { "cachesize", "size", 2, 2, 0, ARG_INT|ARG_NONZERO|ARG_OFFSET, + { "cachesize", "size", 2, 2, 0, ARG_INT|ARG_OFFSET, (void *)offsetof(struct bdb_info, bi_cache.c_maxsize), "( OLcfgAt:1.2 NAME 'dbCacheSize' " "DESC 'Entry cache size in entries' " @@ -71,7 +71,7 @@ static ConfigTable bdbcfg[] = { "( OLcfgAt:1.5 NAME 'dbDirtyRead' " "DESC 'Allow reads of uncommitted data' " "SYNTAX OMsBoolean )", NULL, NULL }, - { "idlcachesize", "size", 2, 2, 0, ARG_INT|ARG_NONZERO|ARG_OFFSET, + { "idlcachesize", "size", 2, 2, 0, ARG_INT|ARG_OFFSET, (void *)offsetof(struct bdb_info,bi_idl_cache_max_size), "( OLcfgAt:1.6 NAME 'dbIDLcacheSize' " "DESC 'IDL cache size in IDLs' "