From 78dc86cdfefcfc944625a8412bd5d4954d49dce7 Mon Sep 17 00:00:00 2001 From: Christopher Hoffman Date: Mon, 12 Feb 2024 16:15:14 +0000 Subject: [PATCH] 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 --- src/client/Client.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client/Client.cc b/src/client/Client.cc index 4bffb1d74b561..5084045ebfa7f 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) { -- 2.39.5