Skip to content

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 requested review from juanangp, lobis and nkx111 December 19, 2022 07:30
@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

4 participants