You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by ch...@apache.org on 2013/01/30 16:07:11 UTC
svn commit: r1440451 -
/activemq/activemq-apollo/trunk/apollo-leveldb/src/main/scala/org/apache/activemq/apollo/broker/store/leveldb/LevelDBClient.scala
Author: chirino
Date: Wed Jan 30 15:07:10 2013
New Revision: 1440451
URL: http://svn.apache.org/viewvc?rev=1440451&view=rev
Log:
APLO-282: Increase the compaction ratio limit and also log when compactions complete.
Modified:
activemq/activemq-apollo/trunk/apollo-leveldb/src/main/scala/org/apache/activemq/apollo/broker/store/leveldb/LevelDBClient.scala
Modified: activemq/activemq-apollo/trunk/apollo-leveldb/src/main/scala/org/apache/activemq/apollo/broker/store/leveldb/LevelDBClient.scala
URL: http://svn.apache.org/viewvc/activemq/activemq-apollo/trunk/apollo-leveldb/src/main/scala/org/apache/activemq/apollo/broker/store/leveldb/LevelDBClient.scala?rev=1440451&r1=1440450&r2=1440451&view=diff
==============================================================================
--- activemq/activemq-apollo/trunk/apollo-leveldb/src/main/scala/org/apache/activemq/apollo/broker/store/leveldb/LevelDBClient.scala (original)
+++ activemq/activemq-apollo/trunk/apollo-leveldb/src/main/scala/org/apache/activemq/apollo/broker/store/leveldb/LevelDBClient.scala Wed Jan 30 15:07:10 2013
@@ -1164,7 +1164,7 @@ class LevelDBClient(store: LevelDBStore)
// After running some load we empirically found that a healthy ratio is between 12 and 25 bytes per entry.
// lets compact if we go way over the healthy ratio.
- if( ratio > 50 ) {
+ if( ratio > 100 ) {
index.compact_needed = true
}
} else if( index_usage > 1024*1024*5 ) {
@@ -1187,6 +1187,7 @@ class LevelDBClient(store: LevelDBStore)
if( index.compact_needed ) {
info("Compacting the leveldb index at: "+dirty_index_file)
index.compact
+ info("Compaction completed")
}
val empty_journals = log.log_infos.keySet.toSet -- log_refs.keySet