store: fix a bug in the stream

It turned out that if you cancel a stream that has reached its end
causes the stream to panic. This bug appeared in prefix ACL checking
when we do a scan, get one element from the stream and then cancel
the stream to perform a lower_bound operation on the store.

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