]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
client: Do not decrypt bl on trim read
authorChristopher Hoffman <choffman@redhat.com>
Wed, 8 Jan 2025 20:20:10 +0000 (20:20 +0000)
committerChristopher Hoffman <choffman@redhat.com>
Thu, 14 Aug 2025 20:09:46 +0000 (20:09 +0000)
Signed-off-by: Christopher Hoffman <choffman@redhat.com>
src/client/Client.cc

index 87b17027589e7363b9a39c6a798291782b9a09fd..a23a5fb6989bbd5b8e12bca173659826b5c17de1 100644 (file)
@@ -11660,7 +11660,7 @@ void Client::do_readahead(Fh *f, Inode *in, uint64_t off, uint64_t len)
 
 void Client::C_Read_Async_Finisher::finish(int r)
 {
-  if (denc && r >= 0) {
+  if (denc && r > 0) {
       std::vector<ObjectCacher::ObjHole> holes;
       r = denc->decrypt_bl(off, len, read_start, holes, bl);
       if (r < 0) {