returns (offset, data, error)
(ctx context.Context, zoneId string, name string)
| 380 | |
| 381 | // returns (offset, data, error) |
| 382 | func (s *FileStore) ReadFile(ctx context.Context, zoneId string, name string) (rtnOffset int64, rtnData []byte, rtnErr error) { |
| 383 | withLock(s, zoneId, name, func(entry *CacheEntry) error { |
| 384 | rtnOffset, rtnData, rtnErr = entry.readAt(ctx, 0, 0, true) |
| 385 | return nil |
| 386 | }) |
| 387 | return |
| 388 | } |
| 389 | |
| 390 | type FlushStats struct { |
| 391 | FlushDuration time.Duration |