Closed
Bug 793666
Opened 12 years ago
Closed 12 years ago
Mail folder databases being closed too aggressively
Categories
(MailNews Core :: Database, defect)
MailNews Core
Database
Tracking
(Not tracked)
RESOLVED
DUPLICATE
of bug 793455
People
(Reporter: Irving, Unassigned)
References
()
Details
+++ This bug was initially created as a clone of Bug #710056 +++
From https://bugzilla.mozilla.org/show_bug.cgi?id=710056#c151
David :Bienvenu 1 day ago
Kent, I really intended the db's to only get closed after 3 minutes of idle (or 5, I can't remember), not 3 seconds. It was a milliseconds vs. seconds confusion, so that really should be fixed.
[wrap] [reply] [-] Comment 152 Wayne Mery (:wsmwk) 11 hours ago
(In reply to David :Bienvenu from comment #151)
> Kent, I really intended the db's to only get closed after 3 minutes of idle
> (or 5, I can't remember), not 3 seconds. It was a milliseconds vs. seconds
> confusion, so that really should be fixed.
Pref looks to be intended to be 5 minutes. But code doesn't net out to be, anso d dbs may be closing too quickly
// How long should we leave idle db's open, in seconds.
pref("mail.db.idle_limit", 3000); (intended to be 5 min, per comments)
attribute PRTime lastUseTime; (microseconds)
let idleLimit = Services.prefs.getIntPref("mail.db.idle_limit");
let closeThreshold = Date.now() - idleLimit; (microseconds)
...
let lruTime = db.lastUseTime / 1000; microseconds/1000 = tenths?
if (lruTime < closeThreshold)
db.folder.msgDatabase = null;
Updated•12 years ago
|
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → DUPLICATE
tracking-thunderbird16:
? → ---
tracking-thunderbird17:
? → ---
You need to log in
before you can comment on or make changes to this bug.
Description
•