(ns, ts uint64)
| 48 | } |
| 49 | |
| 50 | func applyInitialTypes(ns, ts uint64) { |
| 51 | initialTypes := schema.InitialTypes(ns) |
| 52 | for _, t := range initialTypes { |
| 53 | if _, ok := schema.State().GetType(t.TypeName); ok { |
| 54 | continue |
| 55 | } |
| 56 | // It is okay to write initial types at ts=1. |
| 57 | if err := updateType(t.GetTypeName(), t, ts); err != nil { |
| 58 | glog.Errorf("Error while applying initial type: %s", err) |
| 59 | } |
| 60 | } |
| 61 | } |
| 62 | |
| 63 | func SetMaxUID(uid uint64) { |
| 64 | groups().Lock() |
no test coverage detected