From: John Spray Date: Tue, 14 Mar 2017 22:17:36 +0000 (+0000) Subject: client: specify inode in get_caps log message X-Git-Tag: v12.0.2~77^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=84b344ef8a60d3a4800657dc4f5fc777be99e4b9;p=ceph.git client: specify inode in get_caps log message Otherwise when a client is stuck waiting for caps and periodically emitting this message, we have a hard time knowing which inode is involved. Signed-off-by: John Spray --- diff --git a/src/client/Client.cc b/src/client/Client.cc index 8d711553fc8f..66760b987b2d 100644 --- a/src/client/Client.cc +++ b/src/client/Client.cc @@ -3111,7 +3111,7 @@ int Client::get_caps(Inode *in, int need, int want, int *phave, loff_t endoff) return 0; } } - ldout(cct, 10) << "waiting for caps need " << ccap_string(need) << " want " << ccap_string(want) << dendl; + ldout(cct, 10) << "waiting for caps " << *in << " need " << ccap_string(need) << " want " << ccap_string(want) << dendl; waitfor_caps = true; }