-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
abort_source: subscription: keep callback function alive after abort
Change 470b539 causes a regression in scylla when the subscription callback function is destroyed after being called when abort is requested. The app expects this function to remain alive throughout the life time of the subscription object holding it, so seastar should not breask this assumption. This commit keeps it around by adding a boolean `_aborted` member to subscription used to make sure the callback is called at most once, but otherwise, the function is not destroyed until the whole sunscription is destroyed. Added unit test to check that. Signed-off-by: Benny Halevy <[email protected]> Closes #2360
- Loading branch information
Showing
2 changed files
with
41 additions
and
6 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