Skip to content

Commit

Permalink
[ntuple] bump anchor version to v1.0.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
jblomer committed Oct 28, 2024
1 parent 8b4f6ce commit f98dfb8
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 15 deletions.
4 changes: 2 additions & 2 deletions tree/ntuple/v7/inc/ROOT/RNTuple.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ class RNTuple final {
friend class Experimental::Internal::RPageSourceFile;

public:
static constexpr std::uint16_t kVersionEpoch = 0;
static constexpr std::uint16_t kVersionMajor = 3;
static constexpr std::uint16_t kVersionEpoch = 1;
static constexpr std::uint16_t kVersionMajor = 0;
static constexpr std::uint16_t kVersionMinor = 0;
static constexpr std::uint16_t kVersionPatch = 0;

Expand Down
7 changes: 0 additions & 7 deletions tree/ntuple/v7/src/RPageStorageDaos.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -172,13 +172,6 @@ struct RDaosContainerNTupleLocator {
throw ROOT::Experimental::RException(
R__FAIL("unsupported RNTuple epoch version: " + std::to_string(anchor.fVersionEpoch)));
}
if (anchor.fVersionEpoch == 0) {
static std::once_flag once;
std::call_once(once, [&anchor]() {
R__LOG_WARNING(ROOT::Experimental::NTupleLog())
<< "Pre-release format version: RC " << anchor.fVersionMajor;
});
}

builder.SetOnDiskHeaderSize(anchor.fNBytesHeader);
buffer = std::make_unique<unsigned char[]>(anchor.fLenHeader);
Expand Down
6 changes: 0 additions & 6 deletions tree/ntuple/v7/src/RPageStorageFile.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -322,12 +322,6 @@ void ROOT::Experimental::Internal::RPageSourceFile::LoadStructureImpl()
if (fAnchor->GetVersionEpoch() != RNTuple::kVersionEpoch) {
throw RException(R__FAIL("unsupported RNTuple epoch version: " + std::to_string(fAnchor->GetVersionEpoch())));
}
if (fAnchor->GetVersionEpoch() == 0) {
static std::once_flag once;
std::call_once(once, [this]() {
R__LOG_WARNING(NTupleLog()) << "Pre-release format version: RC " << fAnchor->GetVersionMajor();
});
}

fDescriptorBuilder.SetOnDiskHeaderSize(fAnchor->GetNBytesHeader());
fDescriptorBuilder.AddToOnDiskFooterSize(fAnchor->GetNBytesFooter());
Expand Down

0 comments on commit f98dfb8

Please sign in to comment.