Ensure proper shutdown of cursors in errorful conditions.  Failure to close cursors can result in a wedged repository.  That's ... um ... bad.
Ensure proper shutdown of cursors in errorful conditions.  Failure to
close cursors can result in a wedged repository.  That's ... um ... bad.

* subversion/libsvn_fs/bdb/strings-table.c
  (locate_key): Always ensure that the cursor is closed, and add a docstring.
  (get_next_length): Only leave the cursor open if we aren't errorful,
    and add a docstring.

jmckaskill/subversion,jmckaskill/subversion,jmckaskill/subversion,jmckaskill/subversion,jmckaskill/subversion,jmckaskill/subversion,jmckaskill/subversion,jmckaskill/subversion