Skip to content

Commit

Permalink
release/v1.0: Vendor in latest badger with nil pointer dereference fi…
Browse files Browse the repository at this point in the history
…x. (#3348)

* Vendor in latest badger with nil pointer dereference fix.

* Revert "Vendor in latest badger with nil pointer dereference fix."

This reverts commit 84960d3.

* Run govendor fetch for badger and its subpackages.

* Update watermark init args.
  • Loading branch information
danielmai authored and manishrjain committed May 1, 2019
1 parent 2377d9f commit 4f23cb0
Show file tree
Hide file tree
Showing 22 changed files with 895 additions and 391 deletions.
2 changes: 1 addition & 1 deletion conn/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ func NewNode(rc *pb.RaftContext, store *raftwal.DiskStorage) *Node {
peers: make(map[uint64]string),
requestCh: make(chan linReadReq, 100),
}
n.Applied.Init()
n.Applied.Init(nil)
// This should match up to the Applied index set above.
n.Applied.SetDoneUntil(n.Cfg.Applied)
glog.Infof("Setting raft.Config to: %+v\n", n.Cfg)
Expand Down
2 changes: 1 addition & 1 deletion dgraph/cmd/zero/oracle.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ func (o *Oracle) Init() {
o.keyCommit = make(map[string]uint64)
o.subscribers = make(map[int]chan *pb.OracleDelta)
o.updates = make(chan *pb.OracleDelta, 100000) // Keeping 1 second worth of updates.
o.doneUntil.Init()
o.doneUntil.Init(nil)
go o.sendDeltasToSubscribers()
}

Expand Down
77 changes: 54 additions & 23 deletions vendor/github.com/dgraph-io/badger/README.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 4 additions & 2 deletions vendor/github.com/dgraph-io/badger/compaction.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 4f23cb0

Please sign in to comment.