From e16e5a911d6540c14b5e8f023f32ddf67440a069 Mon Sep 17 00:00:00 2001 From: Daniel Mai Date: Mon, 19 Nov 2018 15:15:35 -0800 Subject: [PATCH] Remove assert for zero-length posting lists. --- posting/index.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/posting/index.go b/posting/index.go index e1908e14de6..48a704639ae 100644 --- a/posting/index.go +++ b/posting/index.go @@ -27,7 +27,6 @@ import ( "golang.org/x/net/trace" "github.com/dgraph-io/badger" - "github.com/dgraph-io/badger/y" "github.com/golang/glog" "github.com/dgraph-io/dgraph/protos/pb" @@ -565,7 +564,7 @@ func (r *rebuild) Run(ctx context.Context) error { le := pl.Length(r.startTs, 0) if le == 0 { - y.AssertTruef(le > 0, "Unexpected list of size zero: %q", key) + continue } kv, err := pl.MarshalToKv() if err != nil {