watchtower: add DeleteCommittedUpdate DB method

Add a new DeleteCommittedUpdate method to the wtdb In preparation for an
upcoming commit that will replay committed updates from one session to
another.
This commit is contained in:
Elle Mouton
2023-03-23 10:13:59 +02:00
parent cfb81c00a6
commit c432899bf9
4 changed files with 98 additions and 1 deletions

View File

@@ -135,6 +135,10 @@ type DB interface {
// GetDBQueue returns a BackupID Queue instance under the given name
// space.
GetDBQueue(namespace []byte) wtdb.Queue[*wtdb.BackupID]
// DeleteCommittedUpdate deletes the committed update belonging to the
// given session and with the given sequence number from the db.
DeleteCommittedUpdate(id *wtdb.SessionID, seqNum uint16) error
}
// AuthDialer connects to a remote node using an authenticated transport, such