diff options
| author | 2010-01-08 10:11:24 -0800 | |
|---|---|---|
| committer | 2010-01-08 10:11:24 -0800 | |
| commit | dd1b39be1e077d19911e8dc7bf00db0e31b63287 (patch) | |
| tree | c53d5234cc5b0b188464c61486ee0cc57a4af8a1 | |
| parent | 063d03ed0882582840c7db610635aa89c1a01eec (diff) | |
add eventlog message whenever sqlite reports db corruption error
| -rw-r--r-- | core/java/android/database/sqlite/SQLiteDatabase.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/core/java/android/database/sqlite/SQLiteDatabase.java b/core/java/android/database/sqlite/SQLiteDatabase.java index f621483f6df6..9ebf5d9f3cb4 100644 --- a/core/java/android/database/sqlite/SQLiteDatabase.java +++ b/core/java/android/database/sqlite/SQLiteDatabase.java @@ -286,6 +286,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(); |