Skip to content

Commit

Permalink
Add preds to schemaMap when writing
Browse files Browse the repository at this point in the history
  • Loading branch information
ajeetdsouza committed Dec 22, 2020
1 parent 04c7113 commit 744f812
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dgraph/cmd/bulk/schema.go
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,8 @@ func (s *schemaStore) write(db *badger.DB, preds []string) {
for _, pred := range preds {
sch, ok := s.schemaMap[pred]
if !ok {
continue
sch = &pb.SchemaUpdate{ValueType: pb.Posting_DEFAULT}
s.schemaMap[pred] = sch
}
k := x.SchemaKey(pred)
v, err := sch.Marshal()
Expand Down

0 comments on commit 744f812

Please sign in to comment.