mirror of
https://github.com/corda/corda.git
synced 2025-06-01 23:20:54 +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 {
|
object Commands {
|
||||||
class PutAll<K, V>(val entries: Map<K, V>) : Command<Map<K, V>> {
|
class PutAll<K, V>(val entries: Map<K, V>) : Command<Map<K, V>> {
|
||||||
override fun compaction(): Command.CompactionMode {
|
override fun compaction(): Command.CompactionMode {
|
||||||
// The SNAPSHOT compaction mode indicates that a command can be removed from the Raft log once
|
// The SEQUENTIAL compaction mode retains the command in the log until it has been stored and applied
|
||||||
// a snapshot of the state machine has been written to disk
|
// on all servers in the cluster.
|
||||||
return Command.CompactionMode.SNAPSHOT
|
return Command.CompactionMode.SEQUENTIAL
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user