From b8c8af95d86e23c28822d23149cabd5b3ddd57c3 Mon Sep 17 00:00:00 2001 From: Andreas Joachim Peters Date: Mon, 10 Jun 2024 09:30:54 +0200 Subject: [PATCH] XrdApps::JCache: fix readv response handler to first take VectorReadInfo and then extract the chunklist from there --- .../XrdClJCachePlugin/handler/XrdClJCacheReadVHandler.hh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/XrdApps/XrdClJCachePlugin/handler/XrdClJCacheReadVHandler.hh b/src/XrdApps/XrdClJCachePlugin/handler/XrdClJCacheReadVHandler.hh index ed7518d9670..f94e9ceb65c 100644 --- a/src/XrdApps/XrdClJCachePlugin/handler/XrdClJCacheReadVHandler.hh +++ b/src/XrdApps/XrdClJCachePlugin/handler/XrdClJCacheReadVHandler.hh @@ -60,8 +60,9 @@ public: XrdCl::AnyObject* pResponse) { if (pStatus->IsOK()) { if (pResponse) { - ChunkList* chunks; - pResponse->Get(chunks); + VectorReadInfo* vReadInfo; + pResponse->Get(vReadInfo); + ChunkList* chunks = &(vReadInfo->GetChunks()); // store successfull reads in the journal if there is no vector cache if (journal) { if (vcachepath.empty()) {