Skip to content
This repository has been archived by the owner on Aug 2, 2021. It is now read-only.

localstore: fix subscribe push iterator tag value #1973

Merged
merged 2 commits into from
Nov 26, 2019
Merged

Conversation

acud
Copy link
Member

@acud acud commented Nov 22, 2019

This PR fixes the value of the tag we set on the push index value. This was previously taken from the retrievalDataIndex item which does not contain the tag at all so a tag with value 0 would always be set in the push sync index.
The PR also adds an else block in setSync to prevent a panic on a nil pointer when the tag is nil (when an error is received from localstore.tags).
discovered by @janos <3

@acud acud added the bug label Nov 22, 2019
@acud acud requested review from janos and zelig November 22, 2019 17:33
@acud acud self-assigned this Nov 22, 2019
Copy link
Member

@janos janos left a comment

Choose a reason for hiding this comment

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

Thanks Elad. LGTM.

@acud acud added this to the 0.5.3 milestone Nov 25, 2019
@acud acud added this to Backlog in Swarm Core - Sprint planning via automation Nov 25, 2019
@acud acud moved this from Backlog to In review (includes Documentation) in Swarm Core - Sprint planning Nov 25, 2019
@acud
Copy link
Member Author

acud commented Nov 25, 2019

piggybacked a small change to set Autostart = false for cursor tests in stream since they were flaking (and this should be disabled actually)

@acud acud merged commit ef61788 into master Nov 26, 2019
Swarm Core - Sprint planning automation moved this from In review (includes Documentation) to Done Nov 26, 2019
@acud acud deleted the fix-pushsync-iter branch November 26, 2019 14:56
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

None yet

3 participants