зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1600906 - Make use of FlippedOnce in DatabaseInfo. r=dom-workers-and-storage-reviewers,ytausky
Depends on D55679 Differential Revision: https://phabricator.services.mozilla.com/D55680 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
2258438f9a
Коммит
74e0321d0f
|
@ -5134,7 +5134,7 @@ struct ConnectionPool::DatabaseInfo final {
|
|||
uint32_t mWriteTransactionCount;
|
||||
bool mNeedsCheckpoint;
|
||||
bool mIdle;
|
||||
bool mCloseOnIdle;
|
||||
FlippedOnce<false> mCloseOnIdle;
|
||||
bool mClosing;
|
||||
|
||||
#ifdef DEBUG
|
||||
|
@ -12010,7 +12010,7 @@ bool ConnectionPool::CloseDatabaseWhenIdleInternal(
|
|||
CloseDatabase(dbInfo);
|
||||
AdjustIdleTimer();
|
||||
} else {
|
||||
dbInfo->mCloseOnIdle = true;
|
||||
dbInfo->mCloseOnIdle.EnsureFlipped();
|
||||
}
|
||||
|
||||
return true;
|
||||
|
@ -12120,7 +12120,6 @@ ConnectionPool::DatabaseInfo::DatabaseInfo(ConnectionPool* aConnectionPool,
|
|||
mWriteTransactionCount(0),
|
||||
mNeedsCheckpoint(false),
|
||||
mIdle(false),
|
||||
mCloseOnIdle(false),
|
||||
mClosing(false)
|
||||
#ifdef DEBUG
|
||||
,
|
||||
|
|
Загрузка…
Ссылка в новой задаче