From 3590a401ee53a999d5a6d661da73ce299632fcac Mon Sep 17 00:00:00 2001 From: Martin Martinez Rivera Date: Thu, 11 Jul 2019 14:54:27 -0700 Subject: [PATCH] Fix user meta of schema and type entries in bulk loader. (#3628) The user meta should not be BitCompletePosting since that indicates the value is a posting list. --- dgraph/cmd/bulk/schema.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dgraph/cmd/bulk/schema.go b/dgraph/cmd/bulk/schema.go index 79abfa66331..a433f790671 100644 --- a/dgraph/cmd/bulk/schema.go +++ b/dgraph/cmd/bulk/schema.go @@ -145,7 +145,7 @@ func (s *schemaStore) write(db *badger.DB, preds []string) { x.Check(txn.SetEntry(&badger.Entry{ Key: k, Value: v, - UserMeta: posting.BitCompletePosting})) + UserMeta: posting.BitSchemaPosting})) } // Write all the types as all groups should have access to all the types. @@ -156,7 +156,7 @@ func (s *schemaStore) write(db *badger.DB, preds []string) { x.Check(txn.SetEntry(&badger.Entry{ Key: k, Value: v, - UserMeta: posting.BitCompletePosting, + UserMeta: posting.BitSchemaPosting, })) }