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

ASAP call oncommit callback function to make OSDOpReply firstly reply. #13989

Closed
wants to merge 2 commits into from

Conversation

majianpeng
Copy link
Member

Make op_commit->complete ASAP be called because callback of op_commit send reply to client.

@liupan1111
Copy link
Contributor

@majianpeng your first commit has already been pulled by me.

#13918

@majianpeng
Copy link
Member Author

@liupan1111 . Ok, i'll remove this.

@liupan1111
Copy link
Contributor

Could you modify your pr title, and make it more meaningful?

@majianpeng majianpeng changed the title Op commit first call ASAP call oncommit callback function to make OSDOpReply firstly reply. Jun 16, 2017
Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
if (op->done()) {
assert(!op->on_commit && !op->on_applied);
in_progress_ops.erase(op->tid);
if (op->waiting_for_commit.empty()) {
Copy link

Choose a reason for hiding this comment

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

@majianpeng NIT tabs left

assert(!op->on_commit && !op->on_applied);
in_progress_ops.erase(op->tid);
if (op->waiting_for_applied.empty()) {
assert(!op->on_applied);

Choose a reason for hiding this comment

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

@majianpeng NIT tab left

@liewegas liewegas closed this Feb 2, 2018
@majianpeng majianpeng deleted the op-commit-first-call branch February 8, 2018 01:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants