]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
coverity fix: removing logically dead code 3805/head
authorGaurav Kumar Garg <ggarg@redhat.com>
Wed, 25 Feb 2015 19:15:31 +0000 (00:45 +0530)
committerGaurav Kumar Garg <ggarg@redhat.com>
Thu, 26 Feb 2015 12:49:31 +0000 (18:19 +0530)
coverity CID: 1260393

Signed-off-by: Gaurav Kumar Garg <garg.gaurav52@gmail.com>
src/osd/osd_types.cc

index e6ddab216a35e05e5a2228203c18872cb1bc619c..812ed4c4043be6ce5c853fc4b87f540a29006523 100644 (file)
@@ -3606,15 +3606,9 @@ void object_copy_data_t::decode(bufferlist::iterator& bl)
     ::decode(data, bl);
     ::decode(omap_data, bl);
     ::decode(cursor, bl);
-    if (struct_v >= 2)
-      ::decode(omap_header, bl);
-    if (struct_v >= 3) {
-      ::decode(snaps, bl);
-      ::decode(snap_seq, bl);
-    } else {
-      snaps.clear();
-      snap_seq = 0;
-    }
+    ::decode(omap_header, bl);
+    ::decode(snaps, bl);
+    ::decode(snap_seq, bl);
     if (struct_v >= 4) {
       ::decode(flags, bl);
       ::decode(data_digest, bl);