WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
33005
Move the call to DatabaseTracker::removeOpenDatabase() from Database::~Database() to Database::close() while preserving the order of all other calls
https://bugs.webkit.org/show_bug.cgi?id=33005
Summary
Move the call to DatabaseTracker::removeOpenDatabase() from Database::~Databa...
Dumitru Daniliuc
Reported
2009-12-28 18:45:43 PST
We need to call DatabaseTracker::removeOpenDatabase() in Database::close() instead of Database::~Database(), because once we get to Database::~Database(), we cannot addref the object, schedule tasks on it on another thread, and so on. At the same time, we need to preserve the order in which things are done (such as, calling DatabaseTracker::addOpenDatabase() before actually opening the DB file), because the Chromium implementation was designed with certain assumptions in mind.
Attachments
patch
(5.71 KB, patch)
2009-12-28 19:54 PST
,
Dumitru Daniliuc
mjs
: review+
dumi
: commit-queue-
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Dumitru Daniliuc
Comment 1
2009-12-28 19:54:11 PST
Created
attachment 45585
[details]
patch
WebKit Review Bot
Comment 2
2009-12-28 19:55:22 PST
style-queue ran check-webkit-style on
attachment 45585
[details]
without any errors.
Maciej Stachowiak
Comment 3
2009-12-28 20:18:57 PST
Comment on
attachment 45585
[details]
patch r=me
Dumitru Daniliuc
Comment 4
2009-12-29 12:52:18 PST
Landed as
r52631
. Thanks for the quick review, Maciej!
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug