medea/medeadown — pull request #4 by kevinswiber (2014-10-23 19:59:32+00:00)
Title: Returning NotFound error on MedeaIterator when value is undefined.

Steps to reproduce bug:

1. Put key-value pair.
2. Delete key.
3. Close database.
4. Open database.
5. Run iterator via `db.createReadStream()`.

In Medea, after an initial load of the keydir, we don't know if a value has been tombstoned, so we load all keys in the keydir. We only find out when retrieving the value if it has been tombstoned, and then we return an undefined value in the `get` response. The MedeaIterator was not taking this scenario into consideration. It has been updated accordingly.