-
Notifications
You must be signed in to change notification settings - Fork 932
Pr/sharedfp append fix v2.x #2786
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
Pr/sharedfp append fix v2.x #2786
Conversation
Revert the logic of io_ompio_sharedfp_lazy_open. The user now has to explicitely disable shared fp in order for the structures not to be allocated. Otherwise, resetting the shared fp e.g. in case the file was opened in append mode will not work correctly, the code could deadlock. Signed-off-by: Edgar Gabriel <egabriel@central.uh.edu>
|
Just like #2787: @edgargabriel Got a compile fail: Can you have a look? |
|
argh, copy-and-paste error, a line is missing, Will fix. |
Fixes a bug reported on the mailing list. ompio did only reposition the individual file pointer when the file was opened in append mode. Set the shared file pointer also to point to the end of the file, similarly to the individual file pointer. This is the equivalent to commit d3a8d38 on master, cannot be cherry-picked because of differences in the organization of the ompio files ( usage of mca/common/ompio on master). Signed-off-by: Edgar Gabriel <egabriel@central.uh.edu>
f584119 to
cfda4b8
Compare
jsquyres
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same as #2787 (review) -- would be nice to see another PR to replace opal_output's with opal_show_helps.
|
@hppritcha Good to go. |
|
Shoot -- @edgargabriel just mentioned on the v2.0.x version (#2787 (comment)) that we should have waited merging. My fault for not seeing that fast enough... |
|
I will provide a separate pr for 2.x for the outstanding item. its probably more important to get it in correctly for 2.0.x right now |
|
Thanks @edgargabriel |
Fixes a bug reported on the mailing list. ompio did only reposition the individual
file pointer when the file was opened in append mode. Set the shared file
pointer also to point to the end of the file, similarly to the individual
file pointer.
This is the equivalent to commit d3a8d38
on master, cannot be cherry-picked because of differences in the organization
of the ompio files ( usage of mca/common/ompio on master).