Bug 110677

Summary: IndexedDB: Histogram all exits from IDBBackingStore::open
Product: WebKit Reporter: David Grogan <dgrogan>
Component: New BugsAssignee: David Grogan <dgrogan>
Status: RESOLVED FIXED    
Severity: Normal CC: alecflett, buildbot, jsbell, rniwa, tony, webkit.review.bot
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on: 110675    
Bug Blocks: 110820    
Attachments:
Description Flags
Patch
none
Patch
none
Patch for landing none

David Grogan
Reported 2013-02-22 18:23:33 PST
IndexedDB: Assert that IDBBackingStore::open's fallthrough path is not entered
Attachments
Patch (3.17 KB, patch)
2013-02-22 18:33 PST, David Grogan
no flags
Patch (3.16 KB, patch)
2013-02-22 19:49 PST, David Grogan
no flags
Patch for landing (3.25 KB, patch)
2013-02-28 10:24 PST, David Grogan
no flags
David Grogan
Comment 1 2013-02-22 18:33:35 PST
David Grogan
Comment 2 2013-02-22 18:43:09 PST
Josh or Alec, could you take a look? IO error on schema check and failed openInMemory were the last two situations caught by the fallthrough that is now histogrammed as UnknownErr.
Joshua Bell
Comment 3 2013-02-22 19:33:39 PST
Comment on attachment 189890 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=189890&action=review lgtm > Source/WebCore/Modules/indexeddb/IDBBackingStore.cpp:374 > + if (db) Restructure this as an early exit to reduce the amount of nesting? if (!db) { blah; return; } blah; ... but it's not a huge win here.
David Grogan
Comment 4 2013-02-22 19:48:52 PST
Comment on attachment 189890 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=189890&action=review >> Source/WebCore/Modules/indexeddb/IDBBackingStore.cpp:374 >> + if (db) > > Restructure this as an early exit to reduce the amount of nesting? > > if (!db) { > blah; > return; > } > blah; > > ... but it's not a huge win here. Done.
David Grogan
Comment 5 2013-02-22 19:49:46 PST
David Grogan
Comment 6 2013-02-22 19:50:35 PST
Tony, could you review this?
Build Bot
Comment 7 2013-02-22 21:56:49 PST
Comment on attachment 189901 [details] Patch Attachment 189901 [details] did not pass mac-wk2-ews (mac-wk2): Output: http://queues.webkit.org/results/16714498 New failing tests: fast/css/sticky/sticky-both-sides.html fast/css/sticky/inline-sticky.html
Tony Chang
Comment 8 2013-02-25 09:52:29 PST
Comment on attachment 189901 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=189901&action=review > Source/WebCore/ChangeLog:8 > + Reviewed by NOBODY (OOPS!). > + > + * Modules/indexeddb/IDBBackingStore.cpp: Nit: You should still have a line here saying why there is no test. E.g., No tests because this only changes logging code. In the long run, we may want to come up with a way to write a test for this in webkit_unit_tests.
David Grogan
Comment 9 2013-02-28 10:24:57 PST
Created attachment 190751 [details] Patch for landing
David Grogan
Comment 10 2013-02-28 10:26:05 PST
(In reply to comment #8) > (From update of attachment 189901 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=189901&action=review > > > Source/WebCore/ChangeLog:8 > > + Reviewed by NOBODY (OOPS!). > > + > > + * Modules/indexeddb/IDBBackingStore.cpp: > > Nit: You should still have a line here saying why there is no test. E.g., No tests because this only changes logging code. In the long run, we may want to come up with a way to write a test for this in webkit_unit_tests. Done.
WebKit Review Bot
Comment 11 2013-02-28 11:06:05 PST
Comment on attachment 190751 [details] Patch for landing Clearing flags on attachment: 190751 Committed r144330: <http://trac.webkit.org/changeset/144330>
WebKit Review Bot
Comment 12 2013-02-28 11:06:09 PST
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.