Fixed Destroy method on unique proto databases that failed to initialize
Some leveldb_proto clients attempt to destroy their database when it fails to initialize, this would fail because we needed to have an initialized instance in order to destroy it. This change calls the static method leveldb::DestroyDB which will try to erase the database directory. This will ensure that clients using a DB selector will be able to recover from a failed initialization Renamed wrapper to DB impl on proto_database_impl_unittest to match new class name Bug: 870813 Change-Id: I9cbf4482cde132f68abeecb3b210c289bba0b1b2 Reviewed-on: https://chromium-review.googlesource.com/c/1484086 Commit-Queue: Salvador Guerrero <salg@google.com> Reviewed-by:ssid <ssid@chromium.org> Cr-Commit-Position: refs/heads/master@{#635839}
Showing
This diff is collapsed.
Please register or sign in to comment