activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chir...@apache.org
Subject svn commit: r1391624 - /activemq/activemq-apollo/trunk/apollo-leveldb/src/main/scala/org/apache/activemq/apollo/broker/store/leveldb/LevelDBStore.scala
Date Fri, 28 Sep 2012 20:01:06 GMT
Author: chirino
Date: Fri Sep 28 20:01:06 2012
New Revision: 1391624

URL: http://svn.apache.org/viewvc?rev=1391624&view=rev
Log:
Sort the log file list so that it displays nicer.

Modified:
    activemq/activemq-apollo/trunk/apollo-leveldb/src/main/scala/org/apache/activemq/apollo/broker/store/leveldb/LevelDBStore.scala

Modified: activemq/activemq-apollo/trunk/apollo-leveldb/src/main/scala/org/apache/activemq/apollo/broker/store/leveldb/LevelDBStore.scala
URL: http://svn.apache.org/viewvc/activemq/activemq-apollo/trunk/apollo-leveldb/src/main/scala/org/apache/activemq/apollo/broker/store/leveldb/LevelDBStore.scala?rev=1391624&r1=1391623&r2=1391624&view=diff
==============================================================================
--- activemq/activemq-apollo/trunk/apollo-leveldb/src/main/scala/org/apache/activemq/apollo/broker/store/leveldb/LevelDBStore.scala
(original)
+++ activemq/activemq-apollo/trunk/apollo-leveldb/src/main/scala/org/apache/activemq/apollo/broker/store/leveldb/LevelDBStore.scala
Fri Sep 28 20:01:06 2012
@@ -284,7 +284,7 @@ class LevelDBStore(val config: LevelDBSt
           row_layout.format("Log File", "Msg Refs", "File Size") +
             client.log.log_infos.map {
               case (id, info) => id -> client.log_refs.get(id).map(_.get)
-            }.toSeq.flatMap {
+            }.toSeq.sortWith{case (a,b)=> a._1 < b._1}.flatMap {
               case (id, refs) =>
                 try {
                   val file = LevelDBClient.create_sequence_file(client.directory, id, LevelDBClient.LOG_SUFFIX)



Mime
View raw message