]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
ITS#9878 Workaround for streams that won't receive the fix
authorOndřej Kuzník <ondra@mistotebe.net>
Wed, 6 Jul 2022 14:23:06 +0000 (15:23 +0100)
committerOndřej Kuzník <ondra@mistotebe.net>
Wed, 6 Jul 2022 14:23:06 +0000 (15:23 +0100)
tests/scripts/test043-delta-syncrepl

index c5c5a413b2f846c7d2a18198b7f43301a67bc2b9..0d30e72254ab5a8d2c8c1c3f8771272d1e510e8c 100755 (executable)
@@ -492,6 +492,19 @@ if test $WAIT != 0 ; then
 fi
 KILLPIDS="$PID $CONSUMERPID"
 
+echo "Waiting $SLEEP1 seconds for syncrepl to reschedule (ITS#9878) and poking it..."
+sleep $SLEEP1
+
+$LDAPSEARCH -s base -b "$MONITOR" -H $URI2 \
+    'objectclass=*' > /dev/null 2>&1
+RC=$?
+
+if test $RC != 0; then
+       echo "ldapsearch failed at consumer ($RC)!"
+       test $KILLSERVERS != no && kill -HUP $KILLPIDS
+       exit 1
+fi
+
 echo "Waiting $SLEEP1 seconds for syncrepl to receive changes..."
 sleep $SLEEP1