Skip to content

Conversation

@smithdh
Copy link
Contributor

@smithdh smithdh commented Jul 8, 2025

Hi,

These are two bug fixs for OssCsi: (as two commits),

(1) Use std::less when comparing two pointers (in this situation the total ordering of pointers is used to give a locking order)
(2) When using nofill option do not cause tag files to potentially be sparse as a side effect.

The first does not appear to cause any problem, using operator<() or std::less produced similar code in the builds I tried. But I believe it's not correct according to the standard. (Actually was previusly using operator<() of a std::shared_ptr, which, may be defined. But commit adds comment as well, to point out ordering issue)

The second may have been seen to cause a rare problem in some old development tests (on rh7) I was reviewing.

@amadio amadio changed the base branch from devel to master July 8, 2025 12:33
@amadio
Copy link
Member

amadio commented Jul 8, 2025

@smithdh Due to the compiler warning in devel, I've retargeted this to be able to merge directly onto master.

@amadio amadio added this to the 5.8.4 milestone Jul 8, 2025
@amadio amadio merged commit 5144ec6 into xrootd:master Jul 8, 2025
11 checks passed
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.

2 participants