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

bugfix: counter cannot compact in mem leveldb #1283

Merged
merged 7 commits into from
Jun 7, 2017
Merged

Conversation

caijieming-ng
Copy link
Collaborator

No description provided.

@baidubot
Copy link
Collaborator

baidubot commented Jun 5, 2017

Reviewers: @bluebore @00k @caijieming-baidu

@caijieming-ng
Copy link
Collaborator Author

#1284

@@ -542,6 +550,10 @@ void Version::GetOverlappingInputs(
}
}
}
if (strategy != NULL) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

(可以不用判断NULL,直接delete;加上判断也行,随你。)

virtual void FindShortestSeparator(
std::string* start,
const Slice& limit) const {
return;
Copy link
Collaborator

Choose a reason for hiding this comment

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

直接 {} 就行了,可以不用再写return;
和现有代码的风格保持一致

@taocp
Copy link
Collaborator

taocp commented Jun 7, 2017

LGTM

1 similar comment
@elithnever
Copy link
Member

LGTM

@taocp taocp merged commit bb9be4f into baidu:master Jun 7, 2017
caijieming-ng pushed a commit that referenced this pull request Jun 23, 2017
cherry-pick from bb9be4f

bugfix:counter cannot compact in mem leveldb (
* add code review and merge code rule

* add code review and merge code rule

* add code review and merge code rule

* add code review and merge code rule

* bugfix: counter cannot compact in mem leveldb
caijieming-ng pushed a commit that referenced this pull request Jun 23, 2017

* add code review and merge code rule

* add code review and merge code rule

* add code review and merge code rule

* add code review and merge code rule

* bugfix: counter cannot compact in mem leveldb
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.

5 participants