From: Abhishek Lekshmanan Date: Tue, 26 Mar 2019 18:10:04 +0000 (+0100) Subject: rgw_crypt: make decrypt's parts_len protected X-Git-Tag: v14.2.1~86^2~4 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=265f30a8a90a4a13c91fc2ad455d0ef1d01f8294;p=ceph.git rgw_crypt: make decrypt's parts_len protected 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 (cherry picked from commit 78b37a5ccd67c464f3c6e61568e9e827c327ad6d) --- diff --git a/src/rgw/rgw_crypt.h b/src/rgw/rgw_crypt.h index 4c1a1ab338952..e928d05481ccf 100644 --- a/src/rgw/rgw_crypt.h +++ b/src/rgw/rgw_crypt.h @@ -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 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 parts_len; /**< size of parts of multipart object, parsed from manifest */ public: RGWGetObj_BlockDecrypt(CephContext* cct, RGWGetObj_Filter* next,