Xulstore writing can still occur during late shutdown
Categories
(Core :: SQLite and Embedded Database Bindings, defect)
Tracking
()
Tracking | Status | |
---|---|---|
firefox79 | --- | fixed |
People
(Reporter: alexical, Assigned: alexical)
References
Details
Attachments
(1 file)
Bug 1638166 sought to eliminate late writes during shutdown by the xulstore by flushing writes on the main thread. However, we still see writes due to get_database
itself performing a write, resulting in a call to mdb_env_setup_locks
which writes to disk in order to set up locking on the db. We should not call get_database
if there are no changes to persist.
Assignee | ||
Comment 1•5 years ago
|
||
In bug 1638166 we added a call to persist xulstore changes on the main thread
during shutdown, to ensure that all changes were flushed if we were about to do
an _exit(0). Unfortunately I neglected to notice that get_database does a write
inside mdb_env_setup_locks, which trips our late write checking, and is also
just generally unnecessary / inefficient if there are no changes. This ensures
that we don't do any disk-level locking if there aren't any changes to commit.
Updated•5 years ago
|
Comment 3•5 years ago
|
||
bugherder |
Updated•11 months ago
|
Description
•