OSDN Git Service
(root)
/
android-x86
/
frameworks-base.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
063d03e
)
add eventlog message whenever sqlite reports db corruption error
author
Vasu Nori
<vnori@google.com>
Fri, 8 Jan 2010 18:11:24 +0000
(10:11 -0800)
committer
Vasu Nori
<vnori@google.com>
Fri, 8 Jan 2010 18:11:24 +0000
(10:11 -0800)
core/java/android/database/sqlite/SQLiteDatabase.java
patch
|
blob
|
history
diff --git
a/core/java/android/database/sqlite/SQLiteDatabase.java
b/core/java/android/database/sqlite/SQLiteDatabase.java
index
f621483
..
9ebf5d9
100644
(file)
--- 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();