Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes replicated backup entries appearing on output file #349

Merged
merged 4 commits into from
Dec 19, 2022

Conversation

jgalan
Copy link
Member

@jgalan jgalan commented Dec 12, 2022

jgalan Ok: 17

This PR should solve issue #338

I believe the trick was to add fOutputFile->Write(0, TObject::kOverwrite), this fixes additional entries appearing when using .ls.

However, I believe that when opening the file using restRoot, since we create a new instance, two versions of the object will appear. One it is the instance of the object, the other is the key stored in file.

In reality this is not a 100% fix. The point is that when we open the file using restRoot file.root and then use the TBrowser the browser shows a replicated object because one is the key and the other is the pointer.

If we just do open it using TFile then replicated entries will not appear.

@jgalan jgalan linked an issue Dec 12, 2022 that may be closed by this pull request
@jgalan jgalan marked this pull request as ready for review December 19, 2022 07:30
@jgalan jgalan merged commit 4e1298d into master Dec 19, 2022
@jgalan jgalan deleted the jgalan_replica_fix branch December 19, 2022 08:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

The browser shows duplicated entries
3 participants