Closed
Bug 385396
Opened 18 years ago
Closed 18 years ago
Go back to vanilla sqlite files
Categories
(Core :: SQLite and Embedded Database Bindings, defect)
Core
SQLite and Embedded Database Bindings
Tracking
()
RESOLVED
FIXED
mozilla1.9alpha8
People
(Reporter: sdwilsh, Assigned: sdwilsh)
References
Details
Attachments
(1 file, 1 obsolete file)
|
2.21 KB,
patch
|
vlad
:
review+
|
Details | Diff | Splinter Review |
When we did the upgrade, we had to comment out a flag on the file because it would cause an error on windows only. I filed a bug upstream, but the sqlite folks have WONTFIXed it, so we have to work around the issue.
First, we have to restore the flag that is commented out here:
http://mxr.mozilla.org/seamonkey/source/db/sqlite3/src/sqlite3.c#15794
Next, we have to modify the case statement here:
http://mxr.mozilla.org/seamonkey/source/storage/src/mozStorageAsyncIO.cpp#1436
Basically, we need to check that return result for SQLITE_IOERR, and if it is that, set rc to SQLITE_OK to ignore the error. This solution sucks, but sqlite likes to delete temp files that it tells the OS to delete when they close it anyway.
| Assignee | ||
Comment 1•18 years ago
|
||
Upstream bug:
http://www.sqlite.org/cvstrac/tktview?tn=2441
| Assignee | ||
Comment 2•18 years ago
|
||
Assignee: nobody → sdwilsh
Status: NEW → ASSIGNED
| Assignee | ||
Comment 3•18 years ago
|
||
Added a better description in the warning stating when it is safe to ignore.
r=mconnor on irc to land this, but I need post-landing review from vlad.
Attachment #269394 -
Attachment is obsolete: true
Attachment #269395 -
Flags: review?(vladimir)
| Assignee | ||
Comment 4•18 years ago
|
||
Checking in storage/src/mozStorageAsyncIO.cpp;
new revision: 1.17; previous revision: 1.16
Checking in db/sqlite3/src/sqlite3.c;
new revision: 1.4; previous revision: 1.3
Not closing until this gets reviewed by vlad.
Comment 5•18 years ago
|
||
That seems to have done the trick, not building empty folders now.
Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9a6pre) Gecko/20070622 Minefield/3.0a6pre Firefox/3.0 ID:2007062215 Vista HP
| Assignee | ||
Comment 6•18 years ago
|
||
The SQLite folks seem to think that we should never check the return value of delete. I'm not super happy with this, but removing the logging code might be a better idea.
Flags: blocking1.9?
Target Milestone: --- → mozilla1.9beta1
Comment on attachment 269395 [details] [diff] [review]
v1.1
Yeah, looks fine, close away!
Attachment #269395 -
Flags: review?(vladimir) → review+
| Assignee | ||
Updated•18 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
| Assignee | ||
Updated•18 years ago
|
Flags: blocking1.9?
Updated•1 year ago
|
Product: Toolkit → Core
You need to log in
before you can comment on or make changes to this bug.
Description
•