diff --git a/posting/index.go b/posting/index.go index 0ba0261af19..bbad972fdf0 100644 --- a/posting/index.go +++ b/posting/index.go @@ -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 }