5ad9530502
This commit replaces the map-based CommittedUpdates field with a slice. When reading from disk, these will already be sorted by bbolt, so the client restore the updates as presented without needing to sort them first. Since the key in the map variant was the sequence number, we refactor the CommittedUpdate struct to have a sequence number and an embedded CommittedUpdateBody (which is equivalent to the old CommittedUpdate). The database is then expected to populate the sequence number from the key on disk. Since the sequence number is now directly integrated in the CommittedUpdate struct, this allow allows us to remove the now redundant seqNum argument from CommitUpdate. |
||
---|---|---|
.. | ||
backup_task_internal_test.go | ||
backup_task.go | ||
candidate_iterator.go | ||
client_test.go | ||
client.go | ||
derivation.go | ||
errors.go | ||
interface.go | ||
log.go | ||
session_negotiator.go | ||
session_queue.go | ||
stats.go | ||
task_pipeline.go |