Closed
Bug 458756
Opened 16 years ago
Closed 16 years ago
Use raw sqlite3_stmt pointers instead of the mozStorageStatement object for async statements
Categories
(Core :: SQLite and Embedded Database Bindings, defect)
Core
SQLite and Embedded Database Bindings
Tracking
()
RESOLVED
FIXED
mozilla1.9.1b2
People
(Reporter: sdwilsh, Assigned: sdwilsh)
References
Details
Attachments
(1 file)
12.35 KB,
patch
|
dcamp
:
review+
|
Details | Diff | Splinter Review |
We end up doing a lot of work that we don't have to do by wrapping it, and it also means we may not get accurate errors back (due to threading timing issues). We could add more locks, but we don't need to if we use a raw statement.
We also end up doing less work on the calling thread (addref and release, among other things).
Assignee | ||
Comment 1•16 years ago
|
||
Attachment #341979 -
Flags: review?(dcamp)
Comment 2•16 years ago
|
||
Comment on attachment 341979 [details] [diff] [review]
v1.0
>+ // Reset the statement
>+ (void)sqlite3_finalize(mStatement);
>+
>+ // Notify about completion iff we have a callback.
Probably worth nulling out mStatement here.
Attachment #341979 -
Flags: review?(dcamp) → review+
Assignee | ||
Comment 3•16 years ago
|
||
(In reply to comment #2)
> Probably worth nulling out mStatement here.
Fixed locally. Thanks for the quick review.
Whiteboard: [has patch][has review][can land]
Assignee | ||
Comment 4•16 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
Whiteboard: [has patch][has review][can land]
Updated•6 months ago
|
Product: Toolkit → Core
You need to log in
before you can comment on or make changes to this bug.
Description
•