Masato Taruishi
taru****@users*****
2004年 11月 13日 (土) 23:53:27 JST
=================================================================== RCS file: ultrapossum/module/server/createdb.sh,v retrieving revision 1.32 retrieving revision 1.33 diff -u -r1.32 -r1.33 --- ultrapossum/module/server/createdb.sh 2004/10/26 09:58:37 1.32 +++ ultrapossum/module/server/createdb.sh 2004/11/13 14:53:27 1.33 @@ -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 $slapadd_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