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. |
||
---|---|---|
.. | ||
breach_hint.go | ||
client_session.go | ||
codec_test.go | ||
codec.go | ||
db_common.go | ||
log.go | ||
session_id.go | ||
session_info.go | ||
session_state_update.go | ||
tower_db_test.go | ||
tower_db.go | ||
tower.go | ||
version.go |