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

storage: Make insert_messages not being invoked multiple times #793

Merged
merged 3 commits into from
Jul 26, 2017

Conversation

mocchira
Copy link
Member

No description provided.

Copy link
Member

@yosukehara yosukehara left a comment

Choose a reason for hiding this comment

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

@mocchira I've reviewed your PR. Please check those comments.

{noreply, State_1};
%handle_info({enqueuing, MQId, Type, Directory}, State) ->
% {ok, State_1} = run(Type, ?STATE_ENQUEUING, MQId, Directory, State),
% {noreply, State_1};
Copy link
Member

Choose a reason for hiding this comment

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

Remove 218-220L which is unnecessary.

ok;
#del_dir_state{} ->
dequeue_1(DelBucketStateList, MQId);
dequeue_1(State, DelBucketStateList, MQId);
{_, Cause} ->
?error("dequeue_1/2", [{cause, Cause}]),
Copy link
Member

Choose a reason for hiding this comment

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

?error("dequeue_1/3", [{cause, Cause}]), is correct not dequeue_1/2.

@mocchira
Copy link
Member Author

@yosukehara PTAL

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