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

Improve Image Compaction Logic #193

Open
tri-adam opened this issue Mar 28, 2022 · 0 comments
Open

Improve Image Compaction Logic #193

tri-adam opened this issue Mar 28, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@tri-adam
Copy link
Member

When OptDeleteCompact is passed to (*FileImage).DeleteObject, an error is thrown if the object being deleted is not last in the SIF image:

var errCompactNotImplemented = errors.New("compact not implemented for non-last object")

This makes compaction difficult to use, since the caller needs to be aware of this limitation, and work around it.

We should extend compaction to work regardless of the position of the object being deleted.

@tri-adam tri-adam added the enhancement New feature or request label Mar 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant