MCPcopy Create free account
hub / github.com/couchbase/moss / snapshot

Method snapshot

store_api.go:266–274  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

264}
265
266func (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
277func (s *Store) AddRef() {

Callers 4

SnapshotMethod · 0.95
compactMaybeMethod · 0.95
StatsMethod · 0.95

Calls 1

AddRefMethod · 0.45