Artifact 84d255afaf619b7e36aa64415e9b4bdebf4a78ed:
- Executable file utils/lock-stats.sh — part of check-in [8149616a1d] at 2017-01-30 14:24:36 on branch server-log-handshaking — Fixed debug message print that was missing the port (user: mrwellan, size: 388) [annotate] [blame] [check-ins using] [more...]
#!/bin/bash while IFS=': ' read x x x x p x x i x; do if ! [[ ${i}x == "x" ]];then if ! $(echo $i|grep EOF >/dev/null);then fname=$(find -L "/proc/$p/fd" -maxdepth 1 -inum "$i" -exec readlink {} \; -quit) if $(echo $fname | grep megatest.db > /dev/null) || \ $(echo $fname | egrep '.db/\d+.db' > /dev/null);then echo $fname fi fi fi done < /proc/locks