]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
messages/MClientCapRelease: fix string output
authorSage Weil <sage@inktank.com>
Fri, 31 May 2013 16:20:50 +0000 (09:20 -0700)
committerSage Weil <sage@inktank.com>
Mon, 3 Jun 2013 20:45:01 +0000 (13:45 -0700)
Use the vector size, not what is in the header, which is not yet filled in
for outgoing messages.

Signed-off-by: Sage Weil <sage@inktank.com>
src/messages/MClientCapRelease.h

index 5258c5d970f7b3848640cdb46db58aa9db302e61..c1281dee6699ac3bec615ca24da1e7b44bcf3d93 100644 (file)
@@ -33,7 +33,7 @@ private:
 public:
   const char *get_type_name() const { return "client_cap_release";}
   void print(ostream& out) const {
-    out << "client_cap_release(" << head.num << ")";
+    out << "client_cap_release(" << caps.size() << ")";
   }
   
   void decode_payload() {