Closed
Bug 51095
Opened 24 years ago
Closed 24 years ago
mStorageInUse grows faster than required if we update files in cache
Categories
(Core :: Networking: Cache, defect, P2)
Tracking
()
VERIFIED
FIXED
M18
People
(Reporter: dp, Assigned: neeti)
Details
(Whiteboard: [nsbeta3+][pdtp2])
Attachments
(1 file)
2.51 KB,
text/plain
|
Details |
<file already in cache. we hit reload after modifying (decreasing size) say> mStorageInUse += newFileSize - (newFileSize - oldFileSize) This could grow our notion of cache size faster than the cache actually is growing.
Reporter | ||
Comment 1•24 years ago
|
||
When evicting this could be a reason for going into infinite loop ???
Comment 2•24 years ago
|
||
Strange. mStorageInUse += newFileSize - (newFileSize - oldFileSize) is equivalent with mStorageInUse += oldFileSize
Reporter | ||
Comment 3•24 years ago
|
||
Thats a good one :-) My mistake in swapping old and newfile size in the formula. <file already in cache. we hit reload after modifying (decreasing size) say> mStorageInUse += newFileSize - (oldFileSize - newFileSize)
Reporter | ||
Comment 4•24 years ago
|
||
Reassingning to neeti so this will show up on the right radar.
Assignee: dp → neeti
Status: ASSIGNED → NEW
Reporter | ||
Updated•24 years ago
|
Status: NEW → ASSIGNED
Comment 5•24 years ago
|
||
pdt agrees p2 on the assumption that something bad like the infinite loop can happen easily.
Whiteboard: [nsbeta3+] → [nsbeta3+][pdtp2]
Target Milestone: --- → M18
Checked in a fix
Status: ASSIGNED → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
Comment 8•24 years ago
|
||
I'm baffled by the algebra here. /be
Reporter | ||
Comment 9•24 years ago
|
||
Of course you are.
You need to log in
before you can comment on or make changes to this bug.
Description
•