Skip to content

Commit

Permalink
Fix equality in needsCountIndexRebuild (hypermodeinc#2866)
Browse files Browse the repository at this point in the history
  • Loading branch information
martinmr authored and dna2github committed Jul 19, 2019
1 parent c8262b6 commit 5c6c79a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion posting/index.go
Original file line number Diff line number Diff line change
Expand Up @@ -659,7 +659,7 @@ func needsCountIndexRebuild(old *pb.SchemaUpdate, current *pb.SchemaUpdate) inde
}

// Do nothing if the schema directive did not change.
if !current.Count == !old.Count {
if current.Count == old.Count {
return indexNoop

}
Expand Down

0 comments on commit 5c6c79a

Please sign in to comment.