[Fedora-directory-devel] Please review: [Bug 241089] reset db statistics between restarts

Noriko Hosoi nhosoi at redhat.com
Tue Sep 25 21:00:04 UTC 2007


Summary: reset db statistics between restarts

https://bugzilla.redhat.com/show_bug.cgi?id=241089

Since DS 7.x retains the db region files between restarts, the database
statistics are not reset.  Although the cache region contains pages that were
cached before the restart, I think it still makes sense to expect stats like
dbcachehits to be calculated from startup to match the entrycache monitor. 
Maybe we can call db->memp_stat() with the DB_STAT_CLEAR when we shut down or
start up?

------- Additional Comments From nhosoi at redhat.com  2007-09-25 16:55 EST -------
Created an attachment (id=206121)
 --> (https://bugzilla.redhat.com/attachment.cgi?id=206121&action=view)
cvs diff (back-ldbm)


Thanks to Ulf for reporting the problem and the suggestion to fix it.  The
proposed diff cleans up the db stats when the server is shutdown.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3237 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://listman.redhat.com/archives/fedora-directory-devel/attachments/20070925/1a91429a/attachment.bin>


More information about the Fedora-directory-devel mailing list