]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
client: specify inode in get_caps log message 13966/head
authorJohn Spray <john.spray@redhat.com>
Tue, 14 Mar 2017 22:17:36 +0000 (22:17 +0000)
committerJohn Spray <john.spray@redhat.com>
Tue, 14 Mar 2017 22:17:36 +0000 (22:17 +0000)
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 <john.spray@redhat.com>
src/client/Client.cc

index 8d711553fc8f23e6b8ff98ffa7cd39f9615caebc..66760b987b2db01a0728cdc105b3aabff7e3c723 100644 (file)
@@ -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;
     }