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

Pluggable storage architecture #549

Open
wants to merge 1 commit into
base: next
Choose a base branch
from

Conversation

lucagiac81
Copy link

@lucagiac81 lucagiac81 commented Oct 4, 2019

Memcached "core" and extstore are decoupled and an interface is defined between them.

  • The interface supports all the functionality required by extstore, and it generalizes it to support other engines.
  • There is no change in functionality or performance.

The interface gives Memcached the ability to use different storage engines, which can be tailored to specific use cases or media.

Extstore is converted to a storage engine implementing the interface. It is the default engine. No additional engines are provided at this time.

Refer to doc/pluggable-storage.txt for more details.

@lucagiac81 lucagiac81 marked this pull request as ready for review October 4, 2019 03:08
* battle another day.
*/
void *ext_storage = NULL;
static storage_engine *engine;
Copy link
Member

Choose a reason for hiding this comment

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

ext_storage was only used in one place in items.c. I'd rather not regress to more globals by removing the worker thread reference and using this more

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.

None yet

2 participants