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

fix: delete object #327

Merged
merged 1 commit into from
Sep 19, 2023
Merged

fix: delete object #327

merged 1 commit into from
Sep 19, 2023

Conversation

wobito
Copy link
Contributor

@wobito wobito commented Sep 19, 2023

A bug was discovered while deleting an object from a SIF, where the in-memory descriptor wasn't marked as unused.

This fixes that by simplifying the process by reseting the descriptor on the memory allocation, then calling writeDescriptors to persist the change to the backing SIF.

@codecov
Copy link

codecov bot commented Sep 19, 2023

Codecov Report

Merging #327 (87e47a2) into main (c423a2c) will decrease coverage by 0.01%.
The diff coverage is 87.50%.

@@            Coverage Diff             @@
##             main     #327      +/-   ##
==========================================
- Coverage   72.78%   72.77%   -0.01%     
==========================================
  Files          35       35              
  Lines        2976     2964      -12     
==========================================
- Hits         2166     2157       -9     
+ Misses        650      648       -2     
+ Partials      160      159       -1     
Files Changed Coverage Δ
pkg/sif/create.go 70.96% <87.50%> (-0.12%) ⬇️

@wobito wobito marked this pull request as ready for review September 19, 2023 16:51
pkg/sif/create.go Outdated Show resolved Hide resolved
@tri-adam tri-adam merged commit e1f38f0 into sylabs:main Sep 19, 2023
1 check 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.

None yet

2 participants