Example #1
0
func (ldbs *Store) getWithSnapshot(key []byte, snapshot *leveldb.Snapshot) ([]byte, error) {
	options := defaultReadOptions()
	b, err := snapshot.Get(key, options)
	if err == leveldb.ErrNotFound {
		return nil, nil
	}
	return b, err
}