wtdb: supply commited update count to PostEvaluateFilterFn

In this commit, we adjust the PostEvaluateFilterFn to also take in a
count representing the number of committed updates (ie, persisted
un-acked updates) that the session has. This will be made use of in an
upcoming commit.
This commit is contained in:
Elle Mouton committed 2024-01-12 08:23:02 +02:00
1 parent bdf9ec1423
commit 776f2a026c
2 files changed
+26 -14

No files matched your search

+2 -2
View File
@@ -67,8 +67,8 @@ func (c *client) genSessionFilter(
// ExhaustedSessionFilter constructs a wtdb.ClientSessionFilterFn filter
// function that will filter out any sessions that have been exhausted.
func ExhaustedSessionFilter() wtdb.ClientSessionFilterFn {
return func(session *wtdb.ClientSession) bool {
func ExhaustedSessionFilter() wtdb.ClientSessWithNumCommittedUpdatesFilterFn {
return func(session *wtdb.ClientSession, _ uint16) bool {
return session.SeqNum < session.Policy.MaxUpdates
}
}