RESOLVED FIXED 123775
IDB: Make opening/establishing a database asynchronous
https://bugs.webkit.org/show_bug.cgi?id=123775
Summary IDB: Make opening/establishing a database asynchronous
Brady Eidson
Reported 2013-11-04 19:22:22 PST
IDB: Make opening/establishing a database asynchronous Currently opening a database involves main thread I/O. Let's make it asynchronous instead. The LevelDB implementation will still be main thread synchronous.
Attachments
Patch v1 (18.29 KB, patch)
2013-11-04 20:03 PST, Brady Eidson
kling: review+
Brady Eidson
Comment 1 2013-11-04 20:03:12 PST
Created attachment 215987 [details] Patch v1
WebKit Commit Bot
Comment 2 2013-11-04 20:04:09 PST
Attachment 215987 [details] did not pass style-queue: Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'Source/WebCore/ChangeLog', u'Source/WebCore/Modules/indexeddb/IDBBackingStoreInterface.h', u'Source/WebCore/Modules/indexeddb/IDBDatabaseBackendImpl.cpp', u'Source/WebCore/Modules/indexeddb/IDBDatabaseBackendImpl.h', u'Source/WebCore/Modules/indexeddb/leveldb/IDBBackingStoreLevelDB.cpp', u'Source/WebCore/Modules/indexeddb/leveldb/IDBBackingStoreLevelDB.h']" exit_code: 1 Source/WebCore/Modules/indexeddb/leveldb/IDBBackingStoreLevelDB.h:183: The parameter name "metadata" adds no information, so it should be removed. [readability/parameter_name] [5] Total errors found: 1 in 6 files If any of these errors are false positives, please file a bug against check-webkit-style.
Brady Eidson
Comment 3 2013-11-04 20:06:10 PST
(In reply to comment #2) > Attachment 215987 [details] did not pass style-queue: > > Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'Source/WebCore/ChangeLog', u'Source/WebCore/Modules/indexeddb/IDBBackingStoreInterface.h', u'Source/WebCore/Modules/indexeddb/IDBDatabaseBackendImpl.cpp', u'Source/WebCore/Modules/indexeddb/IDBDatabaseBackendImpl.h', u'Source/WebCore/Modules/indexeddb/leveldb/IDBBackingStoreLevelDB.cpp', u'Source/WebCore/Modules/indexeddb/leveldb/IDBBackingStoreLevelDB.h']" exit_code: 1 > Source/WebCore/Modules/indexeddb/leveldb/IDBBackingStoreLevelDB.h:183: The parameter name "metadata" adds no information, so it should be removed. [readability/parameter_name] [5] > Total errors found: 1 in 6 files > > > If any of these errors are false positives, please file a bug against check-webkit-style. Fixed locally.
Andreas Kling
Comment 4 2013-11-04 21:01:56 PST
Comment on attachment 215987 [details] Patch v1 View in context: https://bugs.webkit.org/attachment.cgi?id=215987&action=review r=me > Source/WebCore/Modules/indexeddb/IDBDatabaseBackendImpl.cpp:450 > + RefPtr<IDBDatabaseError> error; This looks unused.
Brady Eidson
Comment 5 2013-11-04 21:04:30 PST
(In reply to comment #4) > (From update of attachment 215987 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=215987&action=review > > r=me > > > Source/WebCore/Modules/indexeddb/IDBDatabaseBackendImpl.cpp:450 > > + RefPtr<IDBDatabaseError> error; > > This looks unused. INDEED!
Brady Eidson
Comment 6 2013-11-04 21:06:37 PST
Brady Eidson
Comment 7 2013-11-04 21:18:33 PST
And that additional review feedback in http://trac.webkit.org/changeset/158642
Note You need to log in before you can comment on or make changes to this bug.