// Read implements persistedIndex. func (x *defRefsIndex) Read(r io.Reader) error { phtable, err := phtable.Read(r) x.Lock() defer x.Unlock() x.phtable = phtable x.ready = (err == nil) return err }
// Read implements persistedIndex. func (x *unitFilesIndex) Read(r io.Reader) error { var err error x.phtable, err = phtable.Read(r) x.ready = (err == nil) return err }
// Read implements persistedIndex. func (x *defRefUnitsIndex) Read(r io.Reader) error { var err error x.phtable, err = phtable.Read(r) x.ready = (err == nil) return err }