]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
fix init of new fields in MCLientCaps
authorSage Weil <sage@redhat.com>
Tue, 23 Feb 2016 15:26:15 +0000 (10:26 -0500)
committerSage Weil <sage@redhat.com>
Tue, 1 Mar 2016 16:18:17 +0000 (11:18 -0500)
src/messages/MClientCaps.h

index 837853dca7cc5095ceb5bdd443ca26deff24a73c..145eced46b70b6748563ac6cd0635260822e929f 100644 (file)
@@ -107,6 +107,11 @@ class MClientCaps : public Message {
 
   MClientCaps()
     : Message(CEPH_MSG_CLIENT_CAPS, HEAD_VERSION, COMPAT_VERSION),
+      size(0),
+      max_size(0),
+      truncate_size(0),
+      truncate_seq(0),
+      time_warp_seq(0),
       osd_epoch_barrier(0),
       oldest_flush_tid(0),
       caller_uid(0), caller_gid(0) {
@@ -123,6 +128,11 @@ class MClientCaps : public Message {
              int mseq,
               epoch_t oeb)
     : Message(CEPH_MSG_CLIENT_CAPS, HEAD_VERSION, COMPAT_VERSION),
+      size(0),
+      max_size(0),
+      truncate_size(0),
+      truncate_seq(0),
+      time_warp_seq(0),
       osd_epoch_barrier(oeb),
       oldest_flush_tid(0),
       caller_uid(0), caller_gid(0) {
@@ -143,6 +153,11 @@ class MClientCaps : public Message {
              inodeno_t ino, inodeno_t realm,
              uint64_t id, int mseq, epoch_t oeb)
     : Message(CEPH_MSG_CLIENT_CAPS, HEAD_VERSION, COMPAT_VERSION),
+      size(0),
+      max_size(0),
+      truncate_size(0),
+      truncate_seq(0),
+      time_warp_seq(0),
       osd_epoch_barrier(oeb),
       oldest_flush_tid(0),
       caller_uid(0), caller_gid(0) {