Closed
Bug 16816
Opened 25 years ago
Closed 24 years ago
rows with 0 ref-count should be removed from databases
Categories
(MailNews Core :: Database, defect, P3)
Tracking
(Not tracked)
VERIFIED
FIXED
M15
People
(Reporter: Bienvenu, Assigned: Bienvenu)
Details
Rows with a 0 ref-count should be removed from databases. Otherwise, mail folders will grow monotenously, especially the inbox :-)
During a compress commit, when iterating over all rows in a rowspace, I should not write rows with a zero persistent refcont (mRow_GcUses), because this would mean a row is not referenced by any table or cell. I must review the code that maintains mRow_GcUses for correctness, and I should add asserts that rows in tables have zero refcounts. We might want another bug for collecting empty tables with zero refcounts, since otherwise empty thread tables will never go away either. Or else we can use this bug as the generalized bug to fix garbage collection of unreferenced peristent objects with IDs in Mork files.
Updated•25 years ago
|
Target Milestone: M15
Comment 2•25 years ago
|
||
David or David, do you think we need to fix this for B1? My intuition is not, so I'm marking M15, but let me know if you disagree.
While not necessary, it's very easy. So I'll plan to squeeze it in with some flushing of code from my local tree in January.
Assignee | ||
Comment 5•24 years ago
|
||
fix checked in - to verify, you can take a local folder with 1000 messages, look at the size of the .msf file, delete all the messages, shut down, and look at the size of the msf file again. The size should be a lot smaller. In theory, it should go down to close to 0, but it doesn't quite. I haven't looked to see why yet, but the size does go way down.
Status: NEW → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
Win 32 (2000-06-14-08 M17) I re-tested it as instructed. Using a local folder with 1006 message, after deleting, shut down, the msf file is reduced from 329 KB to 55 Kb. I supposed this is working as expected.
Assignee | ||
Comment 7•24 years ago
|
||
yes, good enough. you can mark it verified. thanks.
Updated•20 years ago
|
Product: MailNews → Core
Updated•16 years ago
|
Product: Core → MailNews Core
You need to log in
before you can comment on or make changes to this bug.
Description
•