Skip to content

fix: delete object#327

Merged
tri-adam merged 1 commit intosylabs:mainfrom
wobito:fix-delete-object
Sep 19, 2023
Merged

fix: delete object#327
tri-adam merged 1 commit intosylabs:mainfrom
wobito:fix-delete-object

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
@tri-adam tri-adam merged commit e1f38f0 into sylabs:main Sep 19, 2023
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