-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix lease management with flightcontrol
When one flightcontrol callback gets canceled ctx.Value() stops working for aquiring leases for remaining callbacks. While this behavior should be also looked at more carefully, returning a lease for the first callback or for remaining callback would not be correct as some objects can be tracked by first lease and that lease could be already deleted by the first callpath. This fixes it so that any object tracked by flightcontrol callback will be copied to the lease of every codepath after the callback has returned. Signed-off-by: Tonis Tiigi <[email protected]>
- Loading branch information
1 parent
5809d41
commit 4339ee5
Showing
3 changed files
with
137 additions
and
44 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
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
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