print the owner and the transport for the blocked locks in server statedump
Signed-off-by: Raghavendra Bhat <raghavendrabhat@gluster.com> Signed-off-by: Anand Avati <avati@gluster.com> BUG: 2949 (self-heal hangs) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2949
This commit is contained in:
parent
4c81f6268d
commit
e2685adcb7
@ -1573,9 +1573,11 @@ __dump_entrylks (pl_inode_t *pl_inode)
|
||||
gf_proc_dump_build_key(key,
|
||||
"xlator.feature.locks.lock-dump.domain.entrylk",
|
||||
"entrylk[%d](BLOCKED)",count );
|
||||
snprintf (tmp, 256," %s on %s state = Blocked",
|
||||
snprintf (tmp, 256," %s on %s owner=%llu, transport=%p,"
|
||||
" state = Blocked",
|
||||
lock->type == ENTRYLK_RDLCK ? "ENTRYLK_RDLCK" :
|
||||
"ENTRYLK_WRLCK", lock->basename);
|
||||
"ENTRYLK_WRLCK", lock->basename,
|
||||
(unsigned long long) lock->owner, lock->trans);
|
||||
|
||||
gf_proc_dump_write(key, tmp);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user