()
| 186 | } |
| 187 | |
| 188 | func (g *groupi) applyInitialTypes() { |
| 189 | initialTypes := schema.InitialTypes(x.RootNamespace) |
| 190 | for _, t := range initialTypes { |
| 191 | if _, ok := schema.State().GetType(t.TypeName); ok { |
| 192 | continue |
| 193 | } |
| 194 | // It is okay to write initial types at ts=1. |
| 195 | if err := updateType(t.GetTypeName(), t, 1); err != nil { |
| 196 | glog.Errorf("Error while applying initial type: %s", err) |
| 197 | } |
| 198 | } |
| 199 | } |
| 200 | |
| 201 | func (g *groupi) applyInitialSchema() { |
| 202 | if g.groupId() != 1 { |
no test coverage detected