(s *pb.SchemaUpdate, ts uint64)
| 235 | } |
| 236 | |
| 237 | func applySchema(s *pb.SchemaUpdate, ts uint64) error { |
| 238 | if err := updateSchema(s, ts); err != nil { |
| 239 | return err |
| 240 | } |
| 241 | if servesTablet, err := groups().ServesTablet(s.Predicate); err != nil { |
| 242 | return err |
| 243 | } else if !servesTablet { |
| 244 | return errors.Errorf("group 1 should always serve reserved predicate %s", s.Predicate) |
| 245 | } |
| 246 | return nil |
| 247 | } |
| 248 | |
| 249 | // No locks are acquired while accessing this function. |
| 250 | // Don't acquire RW lock during this, otherwise we might deadlock. |
no test coverage detected