Skip to content

Commit

Permalink
Make GetEntriesSerialized actually work with destructive serialization
Browse files Browse the repository at this point in the history
TBulkRead::GetEntriesSerialized should simply work with destructive
serialization. Not sure why the check is there.
  • Loading branch information
ktf committed Oct 5, 2020
1 parent fe9a8a6 commit 36130d1
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions tree/tree/src/TBranch.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -1509,10 +1509,6 @@ Int_t TBranch::GetEntriesSerialized(Long64_t entry, TBuffer &user_buf, TBuffer *
// TODO: eventually support multiple leaves.
if (R__unlikely(fNleaves != 1)) { return -1; }
TLeaf *leaf = static_cast<TLeaf*>(fLeaves.UncheckedAt(0));
if (R__unlikely(leaf->GetDeserializeType() == TLeaf::DeserializeType::kDestructive)) {
Error("GetEntriesSerialized", "Encountered a branch with destructive deserialization; failing.\n");
return -1;
}

// Remember which entry we are reading.
fReadEntry = entry;
Expand Down

0 comments on commit 36130d1

Please sign in to comment.