Skip to content
This repository has been archived by the owner on Jul 25, 2022. It is now read-only.

Commit

Permalink
Only destroy matching sessions (#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 Jul 28, 2020
1 parent 631500c commit aa6f5e2
Show file tree
Hide file tree
Showing 7 changed files with 161 additions and 190 deletions.
Loading

0 comments on commit aa6f5e2

Please sign in to comment.