Skip to content

Commit

Permalink
Only destroy matching sessions (whamcloud#2105)
Browse files Browse the repository at this point in the history
If the iml-agent gets a `SESSION_DESTROY` message, it will destroy the
session with a matching plugin name, even if the session id does not
match.

This could lead to the wrong session being destroyed.

Check if the currently held session id matches the one to be destroyed.
If so, destroy it, if not it's a noop.

In addition, Remove the `SessionInfo` struct and replace `Seq` with
`AtomicU64`. This allows us to drop a Mutex, as `AtomicU64` is lockless
and threadsafe.

Signed-off-by: Joe Grund <jgrund@whamcloud.io>
  • Loading branch information
jgrund authored and beevans committed Aug 6, 2020
1 parent 24f2b07 commit d688cdb
Show file tree
Hide file tree
Showing 7 changed files with 161 additions and 190 deletions.
Loading

0 comments on commit d688cdb

Please sign in to comment.