-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pgsql: track transaction progress per direction
PGSQL's current implementation tracks the transaction progress without taking into consideration flow direction, and also has indirections that make it harder to understand how the progress is tracked, as well as when a request or response is actually complete. This patch introduces tracking such progress per direction and adds completion status per direction, too. This will help when triggering raw stream reassembly or for unidirectional transactions, and may be useful when we implement sub-protocols that can have multiple requests per transaction, as well. CancelRequests and TerminationRequests are examples of unidirectional transactions. There won't be any responses to those requests, so we can also mark the response side as done, and set their transactions as completed. Bug #7113
- Loading branch information
1 parent
2c7824a
commit dcccbb1
Showing
1 changed file
with
121 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters