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 2011/12/19 18:49:20 UTC
svn commit: r1220873 -
/activemq/activemq-apollo/trunk/apollo-leveldb/src/main/scala/org/apache/activemq/apollo/broker/store/leveldb/leveldb/RecordLog.scala
Author: chirino
Date: Mon Dec 19 17:49:20 2011
New Revision: 1220873
URL: http://svn.apache.org/viewvc?rev=1220873&view=rev
Log:
Fixes APLO-119 : LevelDB store fails to recover. Usually with an OOM exception.
Journal was not properly calculating the next record offset when the redo records were being replayed.
Modified:
activemq/activemq-apollo/trunk/apollo-leveldb/src/main/scala/org/apache/activemq/apollo/broker/store/leveldb/leveldb/RecordLog.scala
Modified: activemq/activemq-apollo/trunk/apollo-leveldb/src/main/scala/org/apache/activemq/apollo/broker/store/leveldb/leveldb/RecordLog.scala
URL: http://svn.apache.org/viewvc/activemq/activemq-apollo/trunk/apollo-leveldb/src/main/scala/org/apache/activemq/apollo/broker/store/leveldb/leveldb/RecordLog.scala?rev=1220873&r1=1220872&r2=1220873&view=diff
==============================================================================
--- activemq/activemq-apollo/trunk/apollo-leveldb/src/main/scala/org/apache/activemq/apollo/broker/store/leveldb/leveldb/RecordLog.scala (original)
+++ activemq/activemq-apollo/trunk/apollo-leveldb/src/main/scala/org/apache/activemq/apollo/broker/store/leveldb/leveldb/RecordLog.scala Mon Dec 19 17:49:20 2011
@@ -189,7 +189,7 @@ case class RecordLog(directory: File, lo
val length = is.readInt()
val data = new Array[Byte](length)
is.readFully(data)
- (id, data, is.getFilePointer)
+ (id, data, start+is.getFilePointer)
}
}