]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: lc: cls_rgw_lc_list_entries_op struc_v off-by-one
authorMatt Benjamin <mbenjamin@redhat.com>
Wed, 29 Apr 2020 03:10:34 +0000 (23:10 -0400)
committerMatt Benjamin <mbenjamin@redhat.com>
Thu, 30 Apr 2020 11:00:58 +0000 (07:00 -0400)
The incoming version of -new- clients required to be one
higher to trigger the new result format.

Yes, this means that "radosgw-admin lc list" against an
un-upgraded OSD will display Unix epoch for lc-entry
start_time (harmless, and in general will not happen).

Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
src/cls/rgw/cls_rgw_ops.h

index a8d64e636fbe88f1a26a368b038a1bb94a350984..ae02c192ecaad580039131dd3b59bf23a0dc1f03 100644 (file)
@@ -1194,14 +1194,14 @@ struct cls_rgw_lc_list_entries_op {
   cls_rgw_lc_list_entries_op() {}
 
   void encode(ceph::buffer::list& bl) const {
-    ENCODE_START(2, 1, bl);
+    ENCODE_START(3, 1, bl);
     encode(marker, bl);
     encode(max_entries, bl);
     ENCODE_FINISH(bl);
   }
 
   void decode(ceph::buffer::list::const_iterator& bl) {
-    DECODE_START(2, bl);
+    DECODE_START(3, bl);
     compat_v = struct_v;
     decode(marker, bl);
     decode(max_entries, bl);