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

getSetItemBytesOnce does not use skipLocal #14

Closed
daoshenzzg opened this issue Jun 22, 2024 · 0 comments
Closed

getSetItemBytesOnce does not use skipLocal #14

daoshenzzg opened this issue Jun 22, 2024 · 0 comments

Comments

@daoshenzzg
Copy link
Collaborator

getSetItemBytesOnce does not use skipLocal bug

func (c *jetCache) getSetItemBytesOnce(item *item) (b []byte, cached bool, err error) {
	if c.local != nil {
		b, ok := c.local.Get(item.key)
		if ok {
			c.statsHandler.IncrHit()
			c.statsHandler.IncrLocalHit()
			if bytes.Compare(b, notFoundPlaceholder) == 0 {
				return nil, true, c.errNotFound
			}
			return b, true, nil
		}
	}

}
@daoshenzzg daoshenzzg changed the title getSetItemBytesOnce does not use skipLocal bug getSetItemBytesOnce does not use skipLocal Jun 22, 2024
daoshenzzg added a commit that referenced this issue Jun 22, 2024
fix: skipLocal and statistics, fixes #14 #15
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

No branches or pull requests

1 participant