Merge "add eventlog message whenever sqlite reports db corruption error" into eclair
This commit is contained in:
@@ -286,6 +286,7 @@ public class SQLiteDatabase extends SQLiteClosable {
|
|||||||
close();
|
close();
|
||||||
} finally {
|
} finally {
|
||||||
Log.e(TAG, "Removing corrupt database: " + mPath);
|
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
|
// 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.
|
// -- but the next time someone tries to open it, they can set it up from scratch.
|
||||||
new File(mPath).delete();
|
new File(mPath).delete();
|
||||||
|
|||||||
Reference in New Issue
Block a user