]> git-server-git.apps.pok.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>
Wed, 5 Nov 2025 13:59:34 +0000 (13:59 +0000)
Signed-off-by: Christopher Hoffman <choffman@redhat.com>
src/client/Client.cc

index 4717b42f4ab3aefa7a88f8b00b05acb693818e42..4f1fdf3b7f4c1916de9e85b44918da1a2e0b376c 100644 (file)
@@ -11724,7 +11724,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) {