Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 380ae0a6 authored by Vasu Nori's avatar Vasu Nori Committed by Android Git Automerger
Browse files

am 9c74295f: am a1759cea: Merge "add eventlog message whenever sqlite reports...

am 9c74295f: am a1759cea: Merge "add eventlog message whenever sqlite reports db corruption error" into eclair

Merge commit '9c74295f'

* commit '9c74295f':
  add eventlog message whenever sqlite reports db corruption error
parents 333beab9 9c74295f
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -323,6 +323,7 @@ public class SQLiteDatabase extends SQLiteClosable {
            close();
        } finally {
            Log.e(TAG, "Removing corrupt database: " + mPath);
            EventLog.writeEvent(EVENT_DB_CORRUPT, mPath);
            // Delete the corrupt file.  Don't re-create it now -- that would just confuse people
            // -- but the next time someone tries to open it, they can set it up from scratch.
            new File(mPath).delete();