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)

All
Windows NT
defect

Tracking

(Not tracked)

VERIFIED FIXED

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.
Target Milestone: M15
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.
these are mine now, I guess.
Assignee: davidmc → bienvenu
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
QA Contact: lchiang → fenella
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.

yes, good enough. you can mark it verified. thanks.
sure.
Status: RESOLVED → VERIFIED
Product: MailNews → Core
Product: Core → MailNews Core
You need to log in before you can comment on or make changes to this bug.