mirror of https://github.com/apache/activemq.git
Fix for: https://issues.apache.org/jira/browse/AMQ-4837 : LevelDB corrupted in AMQ cluster.
- The tracked flushed offset was not getting initialized to match the initial size of the log file. This invalid flushed offset was being used to do the initial sync /w the slave and then things went downhill.
This commit is contained in:
parent
ec4c2d9464
commit
190da29691
|
@ -118,7 +118,7 @@ case class RecordLog(directory: File, logSuffix:String) {
|
|||
force
|
||||
}
|
||||
|
||||
val flushed_offset = new AtomicLong(0)
|
||||
val flushed_offset = new AtomicLong(append_offset)
|
||||
|
||||
def append_position = {
|
||||
position+append_offset
|
||||
|
|
Loading…
Reference in New Issue