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

fix(skiplist-handler): Iterate over skiplist and send updates to publisher #1697

Merged
merged 4 commits into from
Apr 28, 2021

Conversation

ahsanbarkati
Copy link
Contributor

@ahsanbarkati ahsanbarkati commented Apr 28, 2021

When skiplist is handled to badger, it is directly sent for writing to the LSM tree, and
the published doesn't send updates for the entries received in the skiplist. This PR
fixes it.

This change is Reviewable

Copy link
Contributor

@manishrjain manishrjain left a comment

Choose a reason for hiding this comment

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

:lgtm:

Reviewed 1 of 1 files at r1.
Reviewable status: all files reviewed, 2 unresolved discussions (waiting on @ahsanbarkati and @jarifibrahim)


db.go, line 1048 at r1 (raw file):

			Value:     v.Value,
			ExpiresAt: v.ExpiresAt,
			version:   v.Version,

No need for version.


db.go, line 1050 at r1 (raw file):

			version:   v.Version,
			UserMeta:  v.UserMeta,
			meta:      v.Meta,

Don't think it looks at the meta.

@ahsanbarkati ahsanbarkati merged commit e4002b7 into master Apr 28, 2021
@ahsanbarkati ahsanbarkati deleted the ahsan/commit-optimize branch April 28, 2021 20:39
joshua-goldstein added a commit that referenced this pull request Jan 5, 2023
fredcarle pushed a commit to fredcarle/badger that referenced this pull request Aug 1, 2023
…isher (dgraph-io#1697)

When a skip-list is handed over to badger we should also send the
entries in skiplist to the publisher so that all the subscribers get notified.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants