-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
msgr: discard the local_pipe's queue on shutdown.
To facilitate this, we do two things: 1) actually identify the number of special code values we pass around 2) use that to prevent trying to put() those non-pointer values in Pipe::discard_queue(). Then we just call local_pipe.discard_queue() in wait() like happens (indirectly, via reaping) with all the normal Pipes in rank_pipe. But this does make me think that we may be approaching the point where it's appropriate to create a subclass LocalPipe (against a RemotePipe like our current Pipe implementation is mostly intended to be). Should fix ceph#2086. Signed-off-by: Greg Farnum <[email protected]> Reviewed-by: Sage Weil <[email protected]>
- Loading branch information
1 parent
7690f0b
commit 2437ce0
Showing
2 changed files
with
16 additions
and
5 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