Artifact 3f061e6171795e37a3901626362f421b960f5be6:
- Executable file utils/lock-stats.sh — part of check-in [2a497f95de] at 2017-01-28 22:34:06 on branch server-log-handshaking — Added timestamp touch on server logs, rock solid now with only one server being sustained. (user: matt, size: 393) [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=$(sudo 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