File tree 1 file changed +5
-6
lines changed
quixstreams/state/rocksdb
1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -152,18 +152,17 @@ def set_for_timestamp(
152
152
)
153
153
self ._set_min_eligible_timestamp (prefix , min_eligible_timestamp )
154
154
155
- def _flush (self , changelog_offset : Optional [int ]) -> None :
155
+ @validate_transaction_status (PartitionTransactionStatus .STARTED )
156
+ def prepare (self , processed_offsets : Optional [dict [str , int ]] = None ) -> None :
156
157
"""
157
- Flushes the transaction.
158
-
159
158
This method first calls `_expire()` to remove outdated entries based on
160
159
their timestamps and retention periods, then calls the parent class's
161
- `_flush ()` method to persist changes .
160
+ `prepare ()` to prepare the transaction for flush .
162
161
163
- :param changelog_offset: Optional offset for the changelog.
162
+ :param processed_offsets: the dict with <topic: offset> of the latest processed message
164
163
"""
165
164
self ._expire ()
166
- super ()._flush ( changelog_offset = changelog_offset )
165
+ super ().prepare ( processed_offsets = processed_offsets )
167
166
168
167
def _expire (self ) -> None :
169
168
"""
You can’t perform that action at this time.
0 commit comments