• Adam Weiss's avatar
    Handle leveldb::DestroyDB() errors on wipe failure · 1b7b0863
    Adam Weiss authored
    Add error checking to CLevelDBWrapper for errors from
    leveldb::DestroyDB().  Without it, if unlink() or DeleteFileW() fail to
    delete files, they will fail silent.  If they fail to delete any files,
    CLevelDBWrapper will silently open and read the existing database.
    
    Typically any permissions issues would be caught by leveldb as it churns
    through many files as part of its compaction process, but it is
    conceivable that this could cause problems on Windows with anti-virus
    and indexing software.
    1b7b0863
leveldbwrapper.cpp 2.89 KB