]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
messages/MClientCaps: fix decoding
authorYan, Zheng <zyan@redhat.com>
Mon, 15 Feb 2016 15:28:32 +0000 (23:28 +0800)
committerSage Weil <sage@redhat.com>
Tue, 1 Mar 2016 16:18:18 +0000 (11:18 -0500)
Signed-off-by: Yan, Zheng <zyan@redhat.com>
src/messages/MClientCaps.h

index 145eced46b70b6748563ac6cd0635260822e929f..2fabbc7dea4773776221dc0f63eb24e7a9b708e2 100644 (file)
@@ -191,7 +191,7 @@ public:
 
     out << " size " << size << "/" << max_size;
     if (truncate_seq)
-      out << " ts " << truncate_seq;
+      out << " ts " << truncate_seq << "/" << truncate_size;
     out << " mtime " << mtime;
     if (time_warp_seq)
       out << " tws " << time_warp_seq;
@@ -213,6 +213,7 @@ public:
       size = body.size;
       max_size = body.max_size;
       truncate_size = body.truncate_size;
+      truncate_seq = body.truncate_seq;
       mtime = utime_t(body.mtime);
       atime = utime_t(body.atime);
       ctime = utime_t(body.ctime);