mirror of
https://github.com/corda/corda.git
synced 2025-04-07 11:27:01 +00:00
Raft Notary: change compaction mode to sequential
Keep log until it has been applied to all replicas.
This commit is contained in:
parent
cf33be66ff
commit
b23e727685
@ -27,9 +27,9 @@ class DistributedImmutableMap<K : Any, V : Any, E, EK>(val db: CordaPersistence,
|
||||
object Commands {
|
||||
class PutAll<K, V>(val entries: Map<K, V>) : Command<Map<K, V>> {
|
||||
override fun compaction(): Command.CompactionMode {
|
||||
// The SNAPSHOT compaction mode indicates that a command can be removed from the Raft log once
|
||||
// a snapshot of the state machine has been written to disk
|
||||
return Command.CompactionMode.SNAPSHOT
|
||||
// The SEQUENTIAL compaction mode retains the command in the log until it has been stored and applied
|
||||
// on all servers in the cluster.
|
||||
return Command.CompactionMode.SEQUENTIAL
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user