Masato Taruishi
taru****@users*****
2004年 11月 15日 (月) 15:49:55 JST
=================================================================== RCS file: ultrapossum/module/server/createdb.sh,v retrieving revision 1.32 retrieving revision 1.32.2.1 diff -u -r1.32 -r1.32.2.1 --- ultrapossum/module/server/createdb.sh 2004/10/26 09:58:37 1.32 +++ ultrapossum/module/server/createdb.sh 2004/11/15 06:49:55 1.32.2.1 @@ -44,6 +44,18 @@ create_environ +# FIXME: split this to backend management module +createdb_bdb_cachesize=${createdb_bdb_cachesize:-64000000} +case "$SLAPD_BACKEND_DB_TYPE" in + bdb|hdb) + cat > $DIRECTORY/DB_CONFIG <<EOF +set_cachesize 0 $createdb_bdb_cachesize 0 +set_flags DB_TXN_NOSYNC +set_flags DB_TXN_NOT_DURABLE +EOF + ;; +esac + if test "x$HOST" != "x$MASTER" && include "$HOST" "$SYNCBACKUPS"; then exit 0 fi @@ -161,6 +173,13 @@ echo "unknown format: $format" 1>&2 exit 1 ;; +esac + +# FIXME: split this to backend management module +case "$SLAPD_BACKEND_DB_TYPE" in + bdb|hdb) + /bin/rm -f $DIRECTORY/DB_CONFIG + ;; esac if test "x$DBWORKDIR" != "x"; then