Example #1
0
func newIteratorWithSnapshot(store *Store, snapshot *leveldb.Snapshot) *Iterator {
	options := defaultReadOptions()
	iter := snapshot.NewIterator(nil, options)
	rv := Iterator{
		store:    store,
		iterator: iter,
	}
	return &rv
}