Skip to content

Commit 4164201

Browse files
committed
[ntuple] RPagePersistentSink::fStreamerInfos --> fInfosOfStreamerFields
(cherry picked from commit 2d27aed)
1 parent 532b006 commit 4164201

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

tree/ntuple/inc/ROOT/RPageStorage.hxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -447,7 +447,7 @@ private:
447447
std::vector<ROOT::RClusterDescriptor::RPageRange> fOpenPageRanges;
448448

449449
/// Union of the streamer info records that are sent from streamer fields to the sink before committing the dataset.
450-
ROOT::Internal::RNTupleSerializer::StreamerInfoMap_t fStreamerInfos;
450+
ROOT::Internal::RNTupleSerializer::StreamerInfoMap_t fInfosOfStreamerFields;
451451

452452
protected:
453453
/// Set of optional features supported by the persistent sink

tree/ntuple/src/RPageStorage.cxx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -921,7 +921,7 @@ void ROOT::Internal::RPagePersistentSink::UpdateExtraTypeInfo(const ROOT::RExtra
921921
if (extraTypeInfo.GetContentId() != EExtraTypeInfoIds::kStreamerInfo)
922922
throw RException(R__FAIL("ROOT bug: unexpected type extra info in UpdateExtraTypeInfo()"));
923923

924-
fStreamerInfos.merge(RNTupleSerializer::DeserializeStreamerInfos(extraTypeInfo.GetContent()).Unwrap());
924+
fInfosOfStreamerFields.merge(RNTupleSerializer::DeserializeStreamerInfos(extraTypeInfo.GetContent()).Unwrap());
925925
}
926926

927927
void ROOT::Internal::RPagePersistentSink::InitImpl(ROOT::RNTupleModel &model)
@@ -1247,7 +1247,7 @@ void ROOT::Internal::RPagePersistentSink::CommitClusterGroup()
12471247

12481248
void ROOT::Internal::RPagePersistentSink::CommitDatasetImpl()
12491249
{
1250-
if (!fStreamerInfos.empty()) {
1250+
if (!fInfosOfStreamerFields.empty()) {
12511251
// De-duplicate extra type infos before writing. Usually we won't have them already in the descriptor, but
12521252
// this may happen when we are writing back an already-existing RNTuple, e.g. when doing incremental merging.
12531253
for (const auto &etDesc : fDescriptorBuilder.GetDescriptor().GetExtraTypeInfoIterable()) {
@@ -1257,13 +1257,13 @@ void ROOT::Internal::RPagePersistentSink::CommitDatasetImpl()
12571257
R__ASSERT(etDesc.GetTypeName().empty());
12581258
R__ASSERT(etDesc.GetTypeVersion() == 0);
12591259
auto etInfo = RNTupleSerializer::DeserializeStreamerInfos(etDesc.GetContent()).Unwrap();
1260-
fStreamerInfos.merge(etInfo);
1260+
fInfosOfStreamerFields.merge(etInfo);
12611261
}
12621262
}
12631263

12641264
RExtraTypeInfoDescriptorBuilder extraInfoBuilder;
12651265
extraInfoBuilder.ContentId(EExtraTypeInfoIds::kStreamerInfo)
1266-
.Content(RNTupleSerializer::SerializeStreamerInfos(fStreamerInfos));
1266+
.Content(RNTupleSerializer::SerializeStreamerInfos(fInfosOfStreamerFields));
12671267
fDescriptorBuilder.ReplaceExtraTypeInfo(extraInfoBuilder.MoveDescriptor().Unwrap());
12681268
}
12691269

0 commit comments

Comments
 (0)