()
| 279 | } |
| 280 | |
| 281 | func (db *DB) NewIterator() driver.IIterator { |
| 282 | db.mu.RLock() |
| 283 | defer db.mu.RUnlock() |
| 284 | it := &Iterator{ |
| 285 | db.db.NewIterator(nil, db.iteratorOpts), |
| 286 | } |
| 287 | return it |
| 288 | } |
| 289 | |
| 290 | func (db *DB) NewSnapshot() (driver.ISnapshot, error) { |
| 291 | db.mu.RLock() |
no outgoing calls