From: Christopher Hoffman Date: Tue, 21 May 2024 16:54:35 +0000 (+0000) Subject: client: fix non-encrypted case in read_sync X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=c790b86bbe2c00c792045fc809a3012a2288c309;p=ceph.git client: fix non-encrypted case in read_sync Only append pbl to bl if encrypted case. Fixes: https://tracker.ceph.com/issues/65964 Signed-off-by: Christopher Hoffman --- diff --git a/src/client/Client.cc b/src/client/Client.cc index e2355f604194a..a3190934705ee 100644 --- a/src/client/Client.cc +++ b/src/client/Client.cc @@ -11861,10 +11861,10 @@ int Client::_read_sync(Fh *f, uint64_t off, uint64_t len, bufferlist *bl, if (r < 0) { ldout(cct, 20) << __func__ << "(): failed to decrypt buffer: r=" << r << dendl; } + bl->claim_append(*pbl); } read = pbl->length(); - bl->claim_append(*pbl); } return read; }