mirror of
https://github.com/versity/scoutfs.git
synced 2026-01-08 21:03:12 +00:00
Fix the debug output of client-unmount-recovery
The script really wants to print rid instead of pid. But in case of failure, we can just dump the arrays as well. Signed-off-by: Auke Kok <auke.kok@versity.com>
This commit is contained in:
@@ -28,7 +28,7 @@ while [ "$SECONDS" -lt "$END" ]; do
|
||||
for i in $(t_fs_nrs); do
|
||||
if [ "$i" -ge "$quorum_nr" ]; then
|
||||
t_umount $i &
|
||||
echo "umount $i pid $pid quo $quorum_nr" \
|
||||
echo "umount $i rid $rid quo $quorum_nr" \
|
||||
>> $T_TMP.log
|
||||
mounted[$i]=0
|
||||
fi
|
||||
@@ -53,6 +53,9 @@ while [ "$SECONDS" -lt "$END" ]; do
|
||||
|
||||
for i in "${lock_arr[@]}"; do
|
||||
if [[ ! " ${rid_arr[*]} " =~ " $i " ]]; then
|
||||
echo -e "RID($i) exists" >> $T_TMP.log
|
||||
echo -e "rid_arr:\n${rid_arr[@]}" >> $T_TMP.log
|
||||
echo -e "lock_arr:\n${lock_arr[@]}" >> $T_TMP.log
|
||||
t_fail "RID($i): exists when not mounted"
|
||||
fi
|
||||
done
|
||||
|
||||
Reference in New Issue
Block a user