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

fixed lookup bug for double free #1855

Merged
merged 4 commits into from
Mar 5, 2020
Merged

fixed lookup bug for double free #1855

merged 4 commits into from
Mar 5, 2020

Conversation

bright-starry-sky
Copy link
Contributor

fixed lookup bug .
Issus #1853

@@ -42,8 +42,6 @@ void LookUpEdgeIndexProcessor::process(const cpp2::LookUpIndexRequest& req) {
} else {
this->pushResultCode(this->to(code), partId);
}
this->onFinished();
Copy link
Contributor

Choose a reason for hiding this comment

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

We don't return now?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Emm.. I don't think we need any return here. because this is last line of lambda block. Is there any other intention?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We don't return now?

let me improve the logic, let return directly when any part error occur.

@bright-starry-sky
Copy link
Contributor Author

Improved the logic, return error directly when any part fail occur.

Copy link
Contributor

@dangleptr dangleptr left a comment

Choose a reason for hiding this comment

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

LGTM. Well done.

Copy link
Contributor

@critical27 critical27 left a comment

Choose a reason for hiding this comment

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

LGTM

@bright-starry-sky bright-starry-sky added ready-for-testing PR: ready for the CI test and removed ready-for-testing PR: ready for the CI test labels Mar 5, 2020
@dangleptr dangleptr merged commit 0f2ce83 into vesoft-inc:master Mar 5, 2020
tong-hao pushed a commit to tong-hao/nebula that referenced this pull request Jun 1, 2021
* fixed lookup bug for double free

* improved scan logic, return error directly when any part error occur.

Co-authored-by: dangleptr <37216992+dangleptr@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready-for-testing PR: ready for the CI test
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants