store/leveldb: recursively close objects

Make sure that ia object 'a' is closed, then object 'b' created
from 'a' is also closed, where 'a'->'b' are:
store -> transaction -> stream
store -> snapshot -> stream
store -> stream

Also remove ResetForRetry function from the API of transactions,
because it becomes harder to track the half-closed state of a
transaction and there is not much benefit for having this function
now.

Change-Id: Icf9158bcf3cb1c57f75dd1d9d0cadd95e3350a20
13 files changed
tree: fe8cce6dac6d7b86c962113b7ccb569e557a0450
  1. v23/
  2. x/
  3. .gitignore
  4. AUTHORS
  5. CONTRIBUTORS
  6. LICENSE
  7. PATENTS
  8. VERSION