Commit 9b5e2b00 authored by Jong Hyuk Choi's avatar Jong Hyuk Choi
Browse files

SyncRepl is working with both back-bdb and back-ldbm

parent e8b6a7d6
......@@ -8,11 +8,6 @@ fi
. $SRCDIR/scripts/args.sh $*
if test "$BACKEND" != "bdb" -a "$BACKEND" != "hdb"; then
echo "Test only valid for back-bdb"
exit 0
fi
echo "running defines.sh"
. $SRCDIR/scripts/defines.sh
......@@ -31,6 +26,8 @@ echo "Resetting $R1REPLDIR..."
rm -rf $R1REPLDIR
mkdir $R1REPLDIR
SAVE=$BACKEND
BACKEND=bdb
echo "Starting master slapd on TCP/IP port $PORT..."
. $CONFFILTER $BACKEND $MONITORDB < $SRMASTERCONF > $DBCONF
$SLAPD -f $DBCONF -h $MASTERURI -d $LVL $TIMING > $MASTERLOG 2>&1 &
......@@ -39,6 +36,7 @@ if test $WAIT != 0 ; then
echo PID $PID
read foo
fi
BACKEND=$SAVE
echo "Waiting 5 seconds to wait for master to start..."
sleep 5
......
......@@ -8,11 +8,6 @@ fi
. $SRCDIR/scripts/args.sh $*
if test "$BACKEND" != "bdb" -a "$BACKEND" != "hdb"; then
echo "Test only valid for back-bdb"
exit 0
fi
echo "running defines.sh"
. $SRCDIR/scripts/defines.sh
......@@ -31,6 +26,8 @@ echo "Resetting $P1REPLDIR..."
rm -rf $P1REPLDIR
mkdir $P1REPLDIR
SAVE=$BACKEND
BACKEND=bdb
echo "Starting master slapd on TCP/IP port $PORT..."
. $CONFFILTER $BACKEND $MONITORDB < $SRMASTERCONF > $DBCONF
$SLAPD -f $DBCONF -h $MASTERURI -d $LVL $TIMING > $MASTERLOG 2>&1 &
......@@ -39,6 +36,7 @@ if test $WAIT != 0 ; then
echo PID $PID
read foo
fi
BACKEND=$SAVE
echo "Waiting 5 seconds to wait for master to start..."
sleep 5
......
......@@ -8,11 +8,6 @@ fi
. $SRCDIR/scripts/args.sh $*
if test "$BACKEND" != "bdb" -a "$BACKEND" != "hdb"; then
echo "Test only valid for back-bdb"
exit 0
fi
echo "running defines.sh"
. $SRCDIR/scripts/defines.sh
......@@ -43,6 +38,8 @@ echo "Resetting $P3REPLDIR..."
rm -rf $P3REPLDIR
mkdir $P3REPLDIR
SAVE=$BACKEND
BACKEND=bdb
echo "Starting master slapd on TCP/IP port $PORT..."
. $CONFFILTER $BACKEND $MONITORDB < $SRMASTERCONF > $DBCONF
$SLAPD -f $DBCONF -h $MASTERURI -d $LVL $TIMING > $MASTERLOG 2>&1 &
......@@ -51,6 +48,7 @@ if test $WAIT != 0 ; then
echo PID $PID
read foo
fi
BACKEND=$SAVE
echo "Waiting 5 seconds to wait for master to start..."
sleep 5
......@@ -77,6 +75,8 @@ if test $RC != 0 ; then
exit $RC
fi
SAVE=$BACKEND
BACKEND=bdb
echo "Starting R1 slave slapd on TCP/IP port $R1SLAVEPORT..."
. $CONFFILTER $BACKEND $MONITORDB < $R1SRSLAVECONF > $R1REPLCONF
$SLAPD -f $R1REPLCONF -h $R1SLAVEURI -d $LVL $TIMING > $R1SLAVELOG 2>&1 &
......@@ -85,6 +85,7 @@ if test $WAIT != 0 ; then
echo SLAVE R1 PID $R1SLAVEPID
read foo
fi
BACKEND=$SAVE
echo "Using ldapsearch to check that R1 slave slapd is running..."
for i in 0 1 2 3 4 5; do
......@@ -125,6 +126,8 @@ done
echo "Waiting for the R2 slave to replicate..."
sleep 10
SAVE=$BACKEND
BACKEND=bdb
echo "Starting P1 slave slapd on TCP/IP port $P1SLAVEPORT..."
. $CONFFILTER $BACKEND $MONITORDB < $P1SRSLAVECONF > $P1REPLCONF
$SLAPD -f $P1REPLCONF -h $P1SLAVEURI -d $LVL $TIMING > $P1SLAVELOG 2>&1 &
......@@ -133,6 +136,7 @@ if test $WAIT != 0 ; then
echo SLAVE P1 PID $P1SLAVEPID
read foo
fi
BACKEND=$SAVE
echo "Using ldapsearch to check that the P1 slave slapd is running..."
for i in 0 1 2 3 4 5; do
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment