mirror of
https://github.com/samba-team/samba.git
synced 2025-01-13 13:18:06 +03:00
5b8c4bba5a
(This used to be ctdb commit 2fab9f96df2e5b5c51c860fd65caf0e926a63e34)
19 lines
326 B
Bash
Executable File
19 lines
326 B
Bash
Executable File
#!/bin/sh
|
|
|
|
NUMNODES=2
|
|
if [ $# -gt 0 ]; then
|
|
NUMNODES=$1
|
|
fi
|
|
|
|
rm -f nodes.txt
|
|
for i in `seq 1 $NUMNODES`; do
|
|
echo 127.0.0.$i:9001 >> nodes.txt
|
|
done
|
|
|
|
killall -9 ctdb_fetch
|
|
echo "Trying $NUMNODES nodes"
|
|
for i in `seq 1 $NUMNODES`; do
|
|
$VALGRIND bin/ctdb_fetch --nlist nodes.txt --socket /tmp/ctdb.127.0.0.$i $* &
|
|
done
|
|
wait
|