Skip to content

Commit

Permalink
Fix user meta of schema and type entries in bulk loader. (#3628)
Browse files Browse the repository at this point in the history
The user meta should not be BitCompletePosting since that indicates the
value is a posting list.
  • Loading branch information
martinmr authored Jul 11, 2019
1 parent f0fb095 commit 3590a40
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dgraph/cmd/bulk/schema.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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,
}))
}

Expand Down

0 comments on commit 3590a40

Please sign in to comment.