()
| 43 | } |
| 44 | |
| 45 | func (w *SnapshotWrapper) decRef() (err error) { |
| 46 | w.m.Lock() |
| 47 | w.refCount-- |
| 48 | if w.refCount <= 0 { |
| 49 | if w.ss != nil { |
| 50 | err = w.ss.Close() |
| 51 | w.ss = nil |
| 52 | } |
| 53 | if w.closer != nil { |
| 54 | w.closer.Close() |
| 55 | w.closer = nil |
| 56 | } |
| 57 | } |
| 58 | w.m.Unlock() |
| 59 | return err |
| 60 | } |
| 61 | |
| 62 | // ChildCollectionNames returns an array of child collection name strings. |
| 63 | func (w *SnapshotWrapper) ChildCollectionNames() ([]string, error) { |
no test coverage detected