Closed Bug 471299 Opened 16 years ago Closed 16 years ago

retry code and comments in nsUrlClassifierStore::WriteEntry are wrong

Categories

(Toolkit :: Safe Browsing, defect)

3.5 Branch
defect
Not set
normal

Tracking

()

RESOLVED FIXED
Firefox 3.6a1

People

(Reporter: Gavin, Assigned: Gavin)

Details

Attachments

(1 file)

http://hg.mozilla.org/mozilla-central/annotate/2bbf690dac7e/toolkit/components/url-classifier/src/nsUrlClassifierDBService.cpp#l1943

The code and comment imply that mInsertStatement uses a random insertion point, but as far as I can tell it just does an "INSERT OR REPLACE INTO". Bart points out that this code might have been there to deal with a previous patch that did do random insertions. We should fix the comment and remove the unnecessary retrying code.
Attached patch patchSplinter Review
Assignee: nobody → gavin.sharp
Status: NEW → ASSIGNED
Attachment #354613 - Flags: review?(dcamp)
Comment on attachment 354613 [details] [diff] [review]
patch

Yeah, that snuck in during the first rev of 419117, oops.
Attachment #354613 - Flags: review?(dcamp) → review+
Flags: in-testsuite-
https://hg.mozilla.org/mozilla-central/rev/8686ad847fad
Status: ASSIGNED → RESOLVED
Closed: 16 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
Target Milestone: --- → Firefox 3.2a1
Product: Firefox → Toolkit
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: