summaryrefslogtreecommitdiffstats
path: root/services
diff options
context:
space:
mode:
authorVasu Nori <vnori@google.com>2010-03-23 11:41:44 -0700
committerVasu Nori <vnori@google.com>2010-03-23 15:52:02 -0700
commitf3cf8a4da8ef28e62586cc07edce99879e2c3a56 (patch)
tree0e0f985d2daed6380bba9a4cc86bf003a45250a9 /services
parent7e6ee51359f34535b09ef8305ef902620c3b22ce (diff)
downloadframeworks_base-f3cf8a4da8ef28e62586cc07edce99879e2c3a56.zip
frameworks_base-f3cf8a4da8ef28e62586cc07edce99879e2c3a56.tar.gz
frameworks_base-f3cf8a4da8ef28e62586cc07edce99879e2c3a56.tar.bz2
when corruption occurs, log a warning before closing db
and database.close() should NOT set mPath to null. a few other minor changes included in this CL 1. if it is memory database, no need to delete any file 2. if 2 threads are sharing the same connection, and if corruption occurs on it, one thread closes the db and deletes db - while the other thread is still using it. this can cause SQLITE_MISUSE error. to prevent this, every method in SQLiteDatabse should make sure db is open before exec'ing sql statements. bug:2531172 Change-Id: I4cb5ab8539f46d7f8b26c3f830d799adf46444b6
Diffstat (limited to 'services')
0 files changed, 0 insertions, 0 deletions