]> git.sur5r.net Git - openldap/commitdiff
Added bdb/hdb checkpoint directive. Fixed typo.
authorRein Tollevik <rein@openldap.org>
Mon, 15 Nov 2010 12:20:06 +0000 (12:20 +0000)
committerRein Tollevik <rein@openldap.org>
Mon, 15 Nov 2010 12:20:06 +0000 (12:20 +0000)
tests/scripts/test061-syncreplication-initiation

index 1a7555f45d8700d2d5793e623a9f8b36f902878a..dc0914901ae4b5d07121d21ce56a4f4ae1956e07 100755 (executable)
@@ -23,7 +23,7 @@
 echo "Running defines.sh"
 . $SRCDIR/scripts/defines.sh
 
-test "$INITIATION_RACE_TESTS" = "x" && INITIATION_RACE_TESTS=1
+test "x$INITIATION_RACE_TESTS" = "x" && INITIATION_RACE_TESTS=1
 
 if test $SYNCPROV = syncprovno; then
        echo "Syncrepl provider overlay not available, test skipped"
@@ -60,6 +60,11 @@ KILLPIDS=
 
 $SLAPPASSWD -g -n >$CONFIGPWF
 
+case "$BACKEND" in
+       bdb|hdb)        olcDbCheckpoint="olcDbCheckpoint";;
+       *)              olcDbCheckpoint="# olcDbCheckpoint";;
+esac
+
 echo "Initializing server configurations"
 for dir in $DIRS; do
        $SLAPADD -F $dir/slapd.d -n 0 <<EOF
@@ -201,6 +206,7 @@ objectClass: olcDatabaseConfig
 objectClass: olc${BACKEND}Config
 olcDatabase: {1}$BACKEND
 olcDbDirectory: ./db
+$olcDbCheckpoint: 1024 5
 olcSuffix: $BASEDN
 olcRootDN: $MANAGERDN
 olcRootPW: $PASSWD
@@ -251,6 +257,7 @@ objectClass: olcDatabaseConfig
 objectClass: olc${BACKEND}Config
 olcDatabase: {1}$BACKEND
 olcDbDirectory: ./db
+$olcDbCheckpoint: 1024 5
 olcSuffix: $BASEDN
 olcRootDN: $MANAGERDN
 olcRootPW: $PASSWD
@@ -287,6 +294,7 @@ objectClass: olcDatabaseConfig
 objectClass: olc${BACKEND}Config
 olcDatabase: {1}$BACKEND
 olcDbDirectory: ./db
+$olcDbCheckpoint: 1024 5
 olcSuffix: $BASEDN
 olcRootDN: $MANAGERDN
 olcRootPW: $PASSWD