Commit 7166cea6 authored by Victor Costan's avatar Victor Costan Committed by Commit Bot

DOM Storage: Use exclusive locking when migrating data from SQLite.

Bug: 1000959
Change-Id: Ia0bed864089e14ad413a409fb646706b17cc96fe
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2359232
Auto-Submit: Victor Costan <pwnall@chromium.org>
Reviewed-by: default avatarKen Rockot <rockot@google.com>
Commit-Queue: Ken Rockot <rockot@google.com>
Cr-Commit-Position: refs/heads/master@{#798724}
parent 0eb205c6
......@@ -155,9 +155,13 @@ bool LegacyDomStorageDatabase::LazyOpen(bool create_if_needed) {
return false;
}
db_.reset(new sql::Database());
db_ = std::make_unique<sql::Database>();
db_->set_histogram_tag("DOMStorageDatabase");
// This database should only be accessed from the process hosting the storage
// service, so exclusive locking is appropriate.
db_->set_exclusive_locking();
// This db does not use [meta] table, store mmap status data elsewhere.
db_->set_mmap_alt_status();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment