]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
client: rmw doesn't get_cap_ref like it should. After rmw,
authorChristopher Hoffman <choffman@redhat.com>
Mon, 12 Feb 2024 16:15:14 +0000 (16:15 +0000)
committerChristopher Hoffman <choffman@redhat.com>
Wed, 5 Nov 2025 13:59:33 +0000 (13:59 +0000)
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 <choffman@redhat.com>
src/client/Client.cc

index 4bffb1d74b5611a1c143521b1c8575f3cc8f402d..5084045ebfa7fa2c26dd25fcd7bbc3578d2a8733 100644 (file)
@@ -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) {