Closed
Bug 1041433
Opened 10 years ago
Closed 10 years ago
UnifiedComplete: Close connections on Sqlite.shutdown.addBlocker rather than TOPIC_SHUTDOWN
Categories
(Toolkit :: Places, defect)
Tracking
()
People
(Reporter: asaf, Assigned: mak)
References
Details
Attachments
(1 file)
(deleted),
patch
|
asaf
:
review+
|
Details | Diff | Splinter Review |
No description provided.
Assignee | ||
Updated•10 years ago
|
Blocks: UnifiedComplete
Assignee | ||
Updated•10 years ago
|
Flags: firefox-backlog+
Assignee | ||
Updated•10 years ago
|
Assignee: nobody → mak77
Status: NEW → ASSIGNED
Comment 1•10 years ago
|
||
Hi Marco, can you provide a point value.
Flags: qe-verify?
Flags: needinfo?(mak77)
Assignee | ||
Updated•10 years ago
|
Points: --- → 2
Flags: qe-verify?
Flags: qe-verify-
Flags: needinfo?(mak77)
Assignee | ||
Comment 2•10 years ago
|
||
Attachment #8497135 -
Flags: review?(mano)
Reporter | ||
Comment 3•10 years ago
|
||
Comment on attachment 8497135 [details] [diff] [review]
patch v1
Review of attachment 8497135 [details] [diff] [review]:
-----------------------------------------------------------------
::: toolkit/components/places/UnifiedComplete.js
@@ +1497,5 @@
> + }));
> + } catch (ex) {
> + // It's too late to block shutdown, just close the connection.
> + yield conn.close();
> + throw ex;
I'd not propagate the exception (btw, my caller in PlacesUtils doesn't do so either).
@@ +1504,1 @@
> // Autocomplete often fallbacks to a table scan due to lack of text
Fix the indention of the catch block (all 5 lines).
Attachment #8497135 -
Flags: review?(mano) → review+
Assignee | ||
Comment 4•10 years ago
|
||
(In reply to Mano (::mano, needinfo? for any questions; not reading general bugmail) from comment #3)
> ::: toolkit/components/places/UnifiedComplete.js
> @@ +1497,5 @@
> > + }));
> > + } catch (ex) {
> > + // It's too late to block shutdown, just close the connection.
> > + yield conn.close();
> > + throw ex;
>
> I'd not propagate the exception (btw, my caller in PlacesUtils doesn't do so
> either).
I think we should reject though, otherwise we would be hiding a mistake. And this does.
Assignee | ||
Comment 5•10 years ago
|
||
Assignee | ||
Updated•10 years ago
|
Target Milestone: --- → mozilla35
Updated•10 years ago
|
Iteration: --- → 35.3
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•