diff options
Diffstat (limited to 'ctdb/tests/UNIT/eventscripts/scripts/debug_locks.sh')
-rw-r--r-- | ctdb/tests/UNIT/eventscripts/scripts/debug_locks.sh | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/ctdb/tests/UNIT/eventscripts/scripts/debug_locks.sh b/ctdb/tests/UNIT/eventscripts/scripts/debug_locks.sh index d9c3df76d57..162dc21b2ac 100644 --- a/ctdb/tests/UNIT/eventscripts/scripts/debug_locks.sh +++ b/ctdb/tests/UNIT/eventscripts/scripts/debug_locks.sh @@ -168,25 +168,26 @@ EOF ' _db="locking.tdb.${FAKE_CTDB_PNN}" - _pids='' + if [ -n "$_helper_lock" ] ; then + read -r _ _ _ _ _pid _ _start _end <<EOF +$_helper_lock +EOF + _out="Waiter:${_nl}" + _out="${_out}${_pid} ctdb_lock_helpe ${_db} ${_start} ${_end}" + fi + # fake lock info + _pids='' + _out="${_out:+${_out}${_nl}}Lock holders:" while read -r _ _ _ _pid _ _start _end ; do _comm="smbd" - _out="${_out:+${_out}${_nl}}" + _out="${_out}${_nl}" _out="${_out}${_pid} smbd ${_db} ${_start} ${_end}" _pids="${_pids:+${_pids} }${_pid}" done <<EOF $_holder_lock EOF - if [ -n "$_helper_lock" ] ; then - read -r _ _ _ _ _pid _ _start _end <<EOF -$_helper_lock -EOF - _out="${_out}${_nl}" - _out="${_out}${_pid} ctdb_lock_helpe ${_db} ${_start} ${_end} W" - fi - # fake stack traces for _pid in $_pids ; do _comm="smbd" |