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

Inaki.worker pool #31

Merged
merged 6 commits into from
Nov 8, 2013
Merged

Inaki.worker pool #31

merged 6 commits into from
Nov 8, 2013

Conversation

igaray
Copy link
Member

@igaray igaray commented Nov 7, 2013

In addition to adding the worker pool, the storage backend concept was added. The choosy_repo_mysql now uses a worker_pool to spawn several repo servers, and the backend creates a single emysql pool shared by all workers.

@ghost ghost assigned elbrujohalcon Nov 7, 2013
@ghost ghost assigned marcelog Nov 8, 2013
-spec create_schema(atom(), #sumo_schema{}) -> ok.
create_schema(Name, #sumo_schema{}=Schema) ->
wpool:call(Name, {create_schema, Schema}).

%% @doc Persist the given doc with the given repository name.
Copy link
Member Author

Choose a reason for hiding this comment

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

Moved start_link and create_schema from below so that it matches the export order.

marcelog added a commit that referenced this pull request Nov 8, 2013
@marcelog marcelog merged commit 2d2b359 into master Nov 8, 2013
@igaray igaray deleted the inaki.worker_pool branch November 8, 2013 14:51
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.

3 participants