From 78b37a5ccd67c464f3c6e61568e9e827c327ad6d Mon Sep 17 00:00:00 2001 From: Abhishek Lekshmanan Date: Tue, 26 Mar 2019 19:10:04 +0100 Subject: [PATCH] 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 --- src/rgw/rgw_crypt.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/rgw/rgw_crypt.h b/src/rgw/rgw_crypt.h index 4c1a1ab3389..e928d05481c 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, -- 2.39.5