()
| 264 | } |
| 265 | |
| 266 | func (s *Store) snapshot() (*Footer, error) { |
| 267 | s.m.Lock() |
| 268 | footer := s.footer |
| 269 | if footer != nil { |
| 270 | footer.AddRef() |
| 271 | } |
| 272 | s.m.Unlock() |
| 273 | return footer, nil |
| 274 | } |
| 275 | |
| 276 | // AddRef increases the ref count on this store |
| 277 | func (s *Store) AddRef() { |