@@ -444,9 +444,8 @@ ROOT::Internal::RPageRef
444444ROOT ::Internal::RPageSource::LoadPage(ColumnHandle_t columnHandle, ROOT ::NTupleSize_t globalIndex)
445445{
446446 const auto columnId = columnHandle.fPhysicalId ;
447- const auto columnElementId = columnHandle.fColumn ->GetElement ()->GetIdentifier ();
448- auto cachedPageRef =
449- fPagePool .GetPage (ROOT ::Internal::RPagePool::RKey{columnId, columnElementId.fInMemoryType }, globalIndex);
447+ const auto elementInMemoryType = columnHandle.fColumn ->GetElement ()->GetIdentifier ().fInMemoryType ;
448+ auto cachedPageRef = fPagePool .GetPage (ROOT ::Internal::RPagePool::RKey{columnId, elementInMemoryType}, globalIndex);
450449 if (!cachedPageRef.Get ().IsNull ()) {
451450 UpdateLastUsedCluster (cachedPageRef.Get ().GetClusterInfo ().GetId ());
452451 return cachedPageRef;
@@ -477,17 +476,17 @@ ROOT::Internal::RPageSource::LoadPage(ColumnHandle_t columnHandle, ROOT::NTupleS
477476 }
478477
479478 UpdateLastUsedCluster (pageSummary.fClusterId );
480- return LoadPageImpl (columnHandle, pageSummary);
479+ return fPagePool .RegisterPage (LoadPageImpl (columnHandle, pageSummary),
480+ RPagePool::RKey{columnId, elementInMemoryType});
481481}
482482
483483ROOT ::Internal::RPageRef
484484ROOT ::Internal::RPageSource::LoadPage(ColumnHandle_t columnHandle, RNTupleLocalIndex localIndex)
485485{
486486 const auto clusterId = localIndex.GetClusterId ();
487487 const auto columnId = columnHandle.fPhysicalId ;
488- const auto columnElementId = columnHandle.fColumn ->GetElement ()->GetIdentifier ();
489- auto cachedPageRef =
490- fPagePool .GetPage (ROOT ::Internal::RPagePool::RKey{columnId, columnElementId.fInMemoryType }, localIndex);
488+ const auto elementInMemoryType = columnHandle.fColumn ->GetElement ()->GetIdentifier ().fInMemoryType ;
489+ auto cachedPageRef = fPagePool .GetPage (ROOT ::Internal::RPagePool::RKey{columnId, elementInMemoryType}, localIndex);
491490 if (!cachedPageRef.Get ().IsNull ()) {
492491 UpdateLastUsedCluster (clusterId);
493492 return cachedPageRef;
@@ -516,7 +515,8 @@ ROOT::Internal::RPageSource::LoadPage(ColumnHandle_t columnHandle, RNTupleLocalI
516515 }
517516
518517 UpdateLastUsedCluster (clusterId);
519- return LoadPageImpl (columnHandle, pageSummary);
518+ return fPagePool .RegisterPage (LoadPageImpl (columnHandle, pageSummary),
519+ RPagePool::RKey{columnId, elementInMemoryType});
520520}
521521
522522void ROOT::Internal::RPageSource::EnableDefaultMetrics (const std::string &prefix)
0 commit comments