Skip to content

Commit

Permalink
event_flatstore: improve handling of multiple subscriptions for the s…
Browse files Browse the repository at this point in the history
…ame file

Use the same internal shm struct corresponding to a file for each evi
subscription for that file. This fixes an issue with the 'evi_flat_rotate' MI
command not properly "rotating" multiple subscriptions to the new file. Besides,
a file is now opened only once regardless of how many subscribtions there are
for the same file.
Also, do not reuse an old 'evi_reply_sock' structure for a new subscription for
the same file (if the file corresponding to an old subscription was not yet
closed by all processes). This led to incorrect expire times for new
subscriptions.

Fixes #1933
  • Loading branch information
rvlad-patrascu committed Jan 20, 2020
1 parent 7b9239d commit a2f4f80
Show file tree
Hide file tree
Showing 2 changed files with 204 additions and 170 deletions.

0 comments on commit a2f4f80

Please sign in to comment.