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 bugs found in stratisd#2949 #72

Merged
merged 1 commit into from
Apr 13, 2022

Conversation

jbaublitz
Copy link
Member

Related to stratis-storage/stratisd#2949

The main things I discovered:

  • Creating a cache object was impossible in the previous version
  • get_cache required a mandatory file path to the cache when None should trigger the default path (what most users want)
  • cache_put would cause a double free

Once we merge and release this, perhaps we should yank 0.1.0. This is likely not a big issue because no one could create the cache object to trigger the double free anyway but that's a rather large piece of the interface that's broken.

This commit fixes a few bugs:
* Cache handles can now be created
* Cache file path in get_cache() is now optional and passing in None uses
  the default
* Fixed a double free in the cache handle when put_cache() is called
@jbaublitz jbaublitz merged commit ab5f80a into stratis-storage:master Apr 13, 2022
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