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 committed 2023-07-18 16:28:27 +02:00
1 parent cfb81c00a6
commit c432899bf9
4 files changed
+98 -1

No files matched your search

+4
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