Skip to content

Commit 4894071

Browse files
committed
[ntuple] clang-format RPageStorageFile.cxx
1 parent b944745 commit 4894071

File tree

1 file changed

+11
-12
lines changed

1 file changed

+11
-12
lines changed

tree/ntuple/src/RPageStorageFile.cxx

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -504,18 +504,17 @@ ROOT::Internal::RPageSourceFile::PrepareSingleCluster(const RCluster::RKey &clus
504504
std::vector<ROnDiskPageLocator> onDiskPages;
505505
auto activeSize = 0;
506506
auto pageZeroMap = std::make_unique<ROnDiskPageMap>();
507-
PrepareLoadCluster(clusterKey, *pageZeroMap,
508-
[&](ROOT::DescriptorId_t physicalColumnId, ROOT::NTupleSize_t pageNo,
509-
const ROOT::RClusterDescriptor::RPageInfo &pageInfo) {
510-
const auto &pageLocator = pageInfo.GetLocator();
511-
if (pageLocator.GetType() == RNTupleLocator::kTypeUnknown)
512-
throw RException(R__FAIL("tried to read a page with an unknown locator"));
513-
const auto nBytes =
514-
pageLocator.GetNBytesOnStorage() + pageInfo.HasChecksum() * kNBytesPageChecksum;
515-
activeSize += nBytes;
516-
onDiskPages.push_back(
517-
{physicalColumnId, pageNo, pageLocator.GetPosition<std::uint64_t>(), nBytes, 0});
518-
});
507+
PrepareLoadCluster(
508+
clusterKey, *pageZeroMap,
509+
[&](ROOT::DescriptorId_t physicalColumnId, ROOT::NTupleSize_t pageNo,
510+
const ROOT::RClusterDescriptor::RPageInfo &pageInfo) {
511+
const auto &pageLocator = pageInfo.GetLocator();
512+
if (pageLocator.GetType() == RNTupleLocator::kTypeUnknown)
513+
throw RException(R__FAIL("tried to read a page with an unknown locator"));
514+
const auto nBytes = pageLocator.GetNBytesOnStorage() + pageInfo.HasChecksum() * kNBytesPageChecksum;
515+
activeSize += nBytes;
516+
onDiskPages.push_back({physicalColumnId, pageNo, pageLocator.GetPosition<std::uint64_t>(), nBytes, 0});
517+
});
519518

520519
// Linearize the page requests by file offset
521520
std::sort(onDiskPages.begin(), onDiskPages.end(),

0 commit comments

Comments
 (0)