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

Adapt storage engine methods to not convert hashes #120

Conversation

gavin-norman-sociomantic

Since #37, the storage engine stores keys internally as integers (hash_t),
rather than strings. The existing hash_t-accepting storage methods convert
their key into a string, which is passed to the string-accepting method and
then converted back to a hash. This commit factors out that double
conversion. The hash_t-accepting methods are now the primary methods.

Fixes #92.

Since sociomantic-tsunami#37, the storage engine stores keys internally as integers (hash_t),
rather than strings. The existing hash_t-accepting storage methods convert
their key into a string, which is passed to the string-accepting method and
then converted back to a hash. This commit factors out that double
conversion. The hash_t-accepting methods are now the primary methods.

Fixes sociomantic-tsunami#92.
Copy link
Contributor

@nemanja-boric-sociomantic nemanja-boric-sociomantic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Amazing example of legacy ever-extending code.

@stefan-koch-sociomantic
Copy link
Contributor

yay!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants