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)

x86
macOS
defect
Not set
normal
Points:
2

Tracking

()

RESOLVED FIXED
mozilla35
Iteration:
35.3

People

(Reporter: asaf, Assigned: mak)

References

Details

Attachments

(1 file)

No description provided.
Flags: firefox-backlog+
Assignee: nobody → mak77
Status: NEW → ASSIGNED
Hi Marco, can you provide a point value.
Flags: qe-verify?
Flags: needinfo?(mak77)
Points: --- → 2
Flags: qe-verify?
Flags: qe-verify-
Flags: needinfo?(mak77)
Attached patch patch v1 (deleted) — Splinter Review
Attachment #8497135 - Flags: review?(mano)
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+
(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.
Target Milestone: --- → mozilla35
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.

Attachment

General

Created:
Updated:
Size: