Skip to content

fix(allocator): make nil allocator return go byte slice#217

Merged
NamanJain8 merged 1 commit intomasterfrom
naman/allocator
Nov 4, 2020
Merged

fix(allocator): make nil allocator return go byte slice#217
NamanJain8 merged 1 commit intomasterfrom
naman/allocator

Conversation

@NamanJain8
Copy link
Contributor

@NamanJain8 NamanJain8 commented Nov 4, 2020

This PR makes nil allocator return a go byte slice. It was removed in this commit.
At places, in dgraph (e.g kvs, err := l.Rollup(nil)) we are using nil allocator, and hence causes panic there.


This change is Reviewable

Copy link
Contributor

@ahsanbarkati ahsanbarkati left a comment

Choose a reason for hiding this comment

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

LGTM

@NamanJain8 NamanJain8 merged commit 732f879 into master Nov 4, 2020
@NamanJain8 NamanJain8 deleted the naman/allocator branch November 4, 2020 15:53
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