Description

Open opens file with the given fd read-only. Returns os.ErrNotExist error if the file does not exist. Returns ErrClosed if the underlying storage is closed.

Examples

	recoverTable := func(fd storage.FileDesc) error {
		s.logf("[email protected] recovering @%d", fd.Num)
		reader, err := s.stor.Open(fd)
		if err != nil {
			return err

			db.logf("[email protected] recovering @%d", fd.Num)

			fr, err := db.s.stor.Open(fd)
			if err != nil {
				return err

			db.logf("[email protected] recovering @%d", fd.Num)

			fr, err := db.s.stor.Open(fd)
			if err != nil {
				return err

Open is referenced in 2 repositories

github.com/syndtr/goleveldb github.com/neo5g/neo5g