mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 912935 - Initialize mWALModeEnabled to false upon creation of DOMStorageDBThread::DOMStorageDBThread() and also reorder of access in an if-expression. r=mayhemer
This commit is contained in:
parent
606ef6ffd1
commit
97d1fbc6a1
@ -57,6 +57,7 @@ DOMStorageDBThread::DOMStorageDBThread()
|
||||
: mThread(nullptr)
|
||||
, mMonitor("DOMStorageThreadMonitor")
|
||||
, mStopIOThread(false)
|
||||
, mWALModeEnabled(false)
|
||||
, mDBReady(false)
|
||||
, mStatus(NS_OK)
|
||||
, mWorkerStatements(mWorkerConnection)
|
||||
@ -140,7 +141,7 @@ DOMStorageDBThread::SyncPreload(DOMStorageCacheBridge* aCache, bool aForceSync)
|
||||
// Bypass sync load when an update is pending in the queue to write, we would
|
||||
// get incosistent data in the cache. Also don't allow sync main-thread preload
|
||||
// when DB open and init is still pending on the background thread.
|
||||
if (mWALModeEnabled && mDBReady) {
|
||||
if (mDBReady && mWALModeEnabled) {
|
||||
bool pendingTasks;
|
||||
{
|
||||
MonitorAutoLock monitor(mMonitor);
|
||||
|
Loading…
Reference in New Issue
Block a user