Closed Bug 1726598 Opened 3 years ago Closed 3 years ago

sFactoryShutdown is never set to true and might be obsolete as well as sMutex

Categories

(Core :: Storage: Cache API, task, P3)

task

Tracking

()

RESOLVED FIXED
94 Branch
Tracking Status
firefox94 --- fixed

People

(Reporter: jstutte, Assigned: hxu)

References

(Blocks 1 open bug)

Details

(Keywords: good-first-bug)

Attachments

(1 file)

Looking at searchfox it seems, we do never set sFactoryShutdown to true but we check it even guarded by a mutex.

This sMutex seems obsolete, too.

Keywords: good-first-bug
Severity: -- → S4
Priority: -- → P3

The original intent is now implemented here.

We were setting sFactoryShutdown to true in the original patch, so we should first find out why it was changed/removed. I guess the async quota client shutdown may have something to do with that.

It happened in bug 961049 with Part 6: Quota Manager on PBackground cache changes. Not sure if this tells us "why" though - I read in the review comments:

> Do we still need sMutex?  It seems everything is running on a single thread
> now.

We actually don't need sBackgroundThread anymore, so I removed it.

but sMutex did actually not go away. It looks like if this is an unwanted remainder of that patch already.

Ok, it seems I will have to refresh my memory :)

Assignee: nobody → hxu
Pushed by jstutte@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/98b67986e12d Remove sFactoryShutdown and sMutex from dom::cache::Manager since they are obselete. r=dom-storage-reviewers,jstutte
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 94 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: