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

kv: extract bufferStore from UnionStore, fix #463 #670

Merged
merged 6 commits into from
Dec 4, 2015

Conversation

disksing
Copy link
Contributor

@disksing disksing commented Dec 2, 2015

No description provided.

@disksing
Copy link
Contributor Author

disksing commented Dec 3, 2015

PTAL @coocood @ngaut

@coocood
Copy link
Member

coocood commented Dec 3, 2015

LGTM

if v, ok := values[ks]; ok && len(v) > 0 {
err = c.cache.Set(k, v)
v, ok := values[ks]
if ok && len(v) > 0 {
Copy link
Member

Choose a reason for hiding this comment

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

Seems need continue?

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 should cache a nil value if the key does not exist.

@disksing
Copy link
Contributor Author

disksing commented Dec 4, 2015

PTAL @qiuyesuifeng @shenli

disksing added a commit that referenced this pull request Dec 4, 2015
kv: extract bufferStore from UnionStore, fix #463
@disksing disksing merged commit 37fe78c into master Dec 4, 2015
@disksing disksing deleted the disksing/kv-bufferstore branch December 4, 2015 05:06
@disksing disksing mentioned this pull request Dec 4, 2015
rleungx pushed a commit to rleungx/tidb that referenced this pull request Feb 26, 2024
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.

4 participants