bitcoin/bitcoin — pull request #1004 by dooglus (2012-03-28 22:25:45+00:00)
Title: Add flag -dbtrimlogs to occasionally remove database logs

When set, -dbtrimlogs will delete old unused database log files every 5000 blocks. Otherwise several GB of logs build up while downloading the (1GB) blockchain, and are only deleted when the client exits.