diff options
| author | Jeff Brown <jeffbrown@google.com> | 2012-02-29 10:19:12 -0800 |
|---|---|---|
| committer | Jeff Brown <jeffbrown@google.com> | 2012-02-29 17:02:04 -0800 |
| commit | 559d0645ac8f80491671fa5d3c63e8f296f2909e (patch) | |
| tree | 29d4c5477a45ffb2fd4b6c4349bf1b72ca27de85 /opengl/tests/gl_basic/gl_basic.cpp | |
| parent | 2437a4ab02d0adcbb0c4c762210762db2973cce8 (diff) | |
Refactor SQLiteOpenHelper.
Combine the code for opening readable and writable databases.
This improves the handling of the case where a database cannot
be opened because it cannot be upgraded. Previously we would
open the database twice: first read-write, then read-only, each
time failing due to the version check. Now only open it once.
Removed the goofy locking logic related to upgrading a read-only
database to read-write. We now do it in place by reopening the
necessary connections in the connection pool.
Change-Id: I6deca3fb90e43f4ccb944d4715307fd6fc3e1383
Diffstat (limited to 'opengl/tests/gl_basic/gl_basic.cpp')
0 files changed, 0 insertions, 0 deletions
