From 3205ef86334579fd991404ccfaf3be096d7c060d Mon Sep 17 00:00:00 2001 From: Martin Martinez Rivera Date: Wed, 3 Jul 2019 12:06:08 -0700 Subject: [PATCH] Fix user meta of schema and type entries in bulk loader. 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, })) }