From 0b9ffad770966107d08b8e48f993d73cbbd8e3ca Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Fri, 4 Mar 2005 09:45:08 +0000 Subject: [PATCH] Don't restrict cache sizes to non-zero --- servers/slapd/back-bdb/config.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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' " -- 2.39.5