From: Christopher Hoffman Date: Mon, 12 Feb 2024 16:15:14 +0000 (+0000) Subject: client: rmw doesn't get_cap_ref like it should. After rmw, X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=78dc86cdfefcfc944625a8412bd5d4954d49dce7;p=ceph.git client: rmw doesn't get_cap_ref like it should. After rmw, it put_cap_ref and it didn't happen. Issue with bool need_read. Fixes: https://tracker.ceph.com/issues/64307 Signed-off-by: Christopher Hoffman --- diff --git a/src/client/Client.cc b/src/client/Client.cc index 4bffb1d74b5..5084045ebfa 100644 --- a/src/client/Client.cc +++ b/src/client/Client.cc @@ -12219,7 +12219,7 @@ int Client::WriteEncMgr::read_modify_write(Context *_iofinish) read_start_size = (need_read_start && need_read_end && start_block == end_block ? FSCRYPT_BLOCK_SIZE : ofs_in_start_block); - bool need_read = need_read_start | need_read_start; + bool need_read = need_read_start | need_read_end; if (read_start_size > 0) {