]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
rgw_crypt: make decrypt's parts_len protected
authorAbhishek Lekshmanan <abhishek@suse.com>
Tue, 26 Mar 2019 18:10:04 +0000 (19:10 +0100)
committerAbhishek Lekshmanan <abhishek@suse.com>
Tue, 26 Mar 2019 19:16:51 +0000 (20:16 +0100)
This is so that testing classes can set this and use that to test the branches
in fixup_range tests

Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
src/rgw/rgw_crypt.h

index 4c1a1ab338952ba506e55ac630e1ba88ea50d21b..e928d05481ccfa27a03f821bdd03d88bbe330f27 100644 (file)
@@ -96,9 +96,11 @@ class RGWGetObj_BlockDecrypt : public RGWGetObj_Filter {
   off_t end; /**< stream offset of last byte that is requested */
   bufferlist cache; /**< stores extra data that could not (yet) be processed by BlockCrypt */
   size_t block_size; /**< snapshot of \ref BlockCrypt.get_block_size() */
-  std::vector<size_t> parts_len; /**< size of parts of multipart object, parsed from manifest */
 
   int process(bufferlist& cipher, size_t part_ofs, size_t size);
+
+protected:
+  std::vector<size_t> parts_len; /**< size of parts of multipart object, parsed from manifest */
 public:
   RGWGetObj_BlockDecrypt(CephContext* cct,
                          RGWGetObj_Filter* next,